/*
================================================
 ADVANCED & CREATIVE HEADER STYLES
================================================
*/

/* --- 1. ROOT VARIABLES & GLOBAL SETUP --- */
:root {
    /* Color Palette */
    --color-background: #0d1117;
    --color-text: #c9d1d9;
    --color-text-hover: #ffffff;
    --color-accent-glow: rgba(59, 130, 246, 0.8);
    --color-accent-start: #3B82F6;
    --color-accent-end: #8B5CF6;
    --color-glass-bg: rgba(22, 27, 34, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    /* Sizing & Spacing */
    --header-height: 70px;
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem); /* Fluid typography */

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 2. DYNAMIC AURORA BACKGROUND --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    font-size: var(--font-size-base);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 80% at 20% -10%, var(--color-accent-start), transparent),
        radial-gradient(ellipse 80% 80% at 80% 110%, var(--color-accent-end), transparent);
    z-index: -1;
    opacity: 0.3;
    animation: aurora-flow 20s infinite alternate ease-in-out;
}

@keyframes aurora-flow {
    0% { transform: rotate(0deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* --- 3. GLASS MORPHISM HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--color-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-glass-border);
    transition: background var(--transition-medium);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 2rem;
}

.scroll-progress {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    box-shadow: 0 0 10px var(--color-accent-glow);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* --- 4. LOGO & NAVIGATION STYLING --- */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-hover);
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    transition: transform var(--transition-fast);
}

.logo-image {
    height: 40px;
    margin-right: 12px;
    transition: transform var(--transition-medium);
}

.logo:hover .logo-image {
    transform: rotate(-15deg) scale(1.1);
}

.logo-text {
    transition: text-shadow var(--transition-fast);
}

.logo:hover .logo-text {
    text-shadow: 0 0 8px var(--color-accent-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text-hover);
}

.nav-link.active {
    color: var(--color-text-hover);
}

/* Animated Pill Effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
    border-radius: 99px;
    box-shadow: 0 0 15px var(--color-accent-glow);
    opacity: 0;
    z-index: -1;
    transform: scale(0.8);
    transition: var(--transition-medium);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.btn-main-website {
    padding: 0.5rem 1.5rem;
    color: var(--color-text-hover);
    border: 1px solid var(--color-glass-border);
    border-radius: 99px;
    background: transparent;
    transition: all var(--transition-fast);
}

.btn-main-website:hover {
    border-color: var(--color-accent-start);
    box-shadow: 0 0 15px var(--color-accent-glow);
    transform: translateY(-2px);
}

/* --- 5. RESPONSIVE MOBILE MENU --- */
.toggle-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--color-text-hover);
    transition: all var(--transition-medium);
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--color-glass-border);
        transform: translateX(100%);
        transition: transform var(--transition-medium);
        z-index: 1000;
        padding: calc(var(--header-height) + 2rem) 2rem;
    }

    .navbar[data-visible="true"] {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }
    
    .btn-main-website {
        width: 100%;
    }

    .toggle-menu {
        display: block;
    }

    /* Animated Hamburger Icon */
    .toggle-menu.active .bar1 {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    .toggle-menu.active .bar2 {
        opacity: 0;
        transform: translateX(-20px);
    }
    .toggle-menu.active .bar3 {
        transform: rotate(45deg) translate(-7px, -7px);
    }
}

:root {
    --color-background-dark: #02040a;
    --color-text-primary: #f0f6fc;
    --color-text-secondary: #a7b3c0;
    --color-accent-primary: #3081f7;
    --color-accent-secondary: #a335f0;
    --color-accent-tertiary: #f7459b;
    --header-height: 70px; /* Adjust to your header's height */
}

/* --- 1. HERO SECTION SETUP --- */
.hero {
    position: relative; /* Establishes a stacking context */
    width: 100%;
    height: 150vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background-color: var(--color-background-dark);
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1; /* Ensures background stays in the back */
}

.hero-content {
    position: relative;
    z-index: 10; /* CRITICAL FIX: Ensures content is on top of the background */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 970px;
    margin: 0 1rem;
    animation: content-appear 1.5s 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@keyframes content-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 2. ADVANCED BADGE & GLITCH TITLE --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.badge i {
    color: var(--color-accent-primary);
    margin-right: 0.75rem;
    animation: icon-spin-glow 4s infinite linear;
}

@keyframes icon-spin-glow {
    0%, 100% { transform: rotate(0deg) scale(1); text-shadow: 0 0 5px var(--color-accent-primary); }
    50% { transform: rotate(180deg) scale(1.2); text-shadow: 0 0 15px var(--color-accent-primary); }
}

.hero-title {
    font-size: clamp(2.8rem, 1.5rem + 6vw, 6rem);
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    position: relative;
}

.title-line-wrapper { display: block; overflow: hidden; }
.title-line {
    display: block;
    animation: revealText 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    transform: translateY(110%);
    position: relative;
}

.hero-title .title-line-wrapper:nth-child(1) .title-line { animation-delay: 0.4s; }
.hero-title .title-line-wrapper:nth-child(2) .title-line { animation-delay: 0.5s; }
.hero-title .title-line-wrapper:nth-child(3) .title-line { animation-delay: 0.6s; }

@keyframes revealText { to { transform: translateY(0); } }

/* Glitch Effect */
.title-line::before, .title-line::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-text-primary);
    overflow: hidden;
    opacity: 0.8;
}
.title-line::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-accent-secondary);
    animation: glitch-1 2s infinite ease-in-out alternate-reverse;
}
.title-line::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-accent-primary);
    animation: glitch-2 2s infinite ease-in-out alternate-reverse;
}

@keyframes glitch-1 { 0%, 20%, 60%, 100% { clip-path: inset(45% 0 50% 0); } 40%, 80% { clip-path: inset(20% 0 15% 0); } }
@keyframes glitch-2 { 0%, 20%, 60%, 100% { clip-path: inset(2% 0 95% 0); } 40%, 80% { clip-path: inset(80% 0 5% 0); } }

.highlight {
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    max-width: 680px;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: fadeInFromBottom 1s 1.2s ease forwards;
    opacity: 0;
}

@keyframes fadeInFromBottom {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. 3D INTERACTIVE CTA BUTTONS --- */
.cta-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInFromBottom 1s 1.4s ease forwards;
    opacity: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.cta-btn.primary {
    background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transform: translateY(-3px) scale(1.05);
}

.cta-btn.primary:active {
    transform: translateY(1px) scale(1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-btn.primary i { margin-left: 0.5rem; transition: transform 0.3s ease; }
.cta-btn.primary:hover i { transform: translateX(5px); }

.cta-btn.secondary {
    color: var(--color-text-primary);
    background-color: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

.cta-btn.secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}


/* About Section - Enhanced Styles */
.about {
    position: relative;
    padding: clamp(5rem, 12vw, 10rem) 0;
    background-color: #010409; /* Dark blue-black background */
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Glass Card Container */
.about-content-card {
    position: relative;
    z-index: 2;
    background: rgba(17, 0, 255, 0.85); /* Dark semi-transparent background */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle border */
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 25px 50px -12px rgba(116, 152, 238, 0.5);
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px);
    animation: card-appear 1s 0.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #ffffff; /* Pure white for better contrast */
    line-height: 1.1;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
    padding-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2f81f7, #a371f7); /* Gradient accent */
    border-radius: 2px;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #ffffff; /* Light blue-gray for better readability */
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
    font-weight: 400;
}

/* Pillars Grid */
.core-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Individual Pillar Cards */
.pillar {
    background: rgba(30, 36, 49, 0.5); /* Slightly lighter than container */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar:hover {
    transform: translateY(-10px);
    background: rgba(38, 45, 61, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.15),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pillar:hover::before {
    opacity: 1;
}

/* Pillar Icon */
.pillar-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2f81f7, #a371f7);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(47, 129, 247, 0.4);
    transition: transform 0.3s ease;
}

.pillar:hover .pillar-icon {
    transform: rotate(5deg) scale(1.05);
}

.pillar-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Pillar Content */
.pillar-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e6edf3; /* Bright off-white */
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.pillar-content p {
    font-size: 0.95rem;
    color: #8b94a5; /* Medium gray with blue tint */
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-content-card {
        padding: 2rem;
        border-radius: 18px;
    }
    
    .core-pillars {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillar {
        padding: 1.5rem;
    }
    
    .section-title {
        letter-spacing: -0.5px;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 4rem 0;
    }
    
    .about-content-card {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .pillar-icon {
        width: 48px;
        height: 48px;
    }
    
    .pillar-content h4 {
        font-size: 1.2rem;
    }
}

:root {
    --color-bg-services: #010409;
    --color-text-services-primary: #e6edf3;
    --color-text-services-secondary: #848d97;
    --color-accent-services-1: #238636;
    --color-accent-services-2: #388bfd;
    --color-accent-services-3: #db61a2;
    --color-glass-services-bg: rgba(22, 27, 34, 0.5);
    --color-glass-services-border: rgba(255, 255, 255, 0.1);
}

.services {
    position: relative;
    padding: clamp(5rem, 12vw, 10rem) 0;
    background-color: var(--color-bg-services);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#services-background-canvas {
    width: 100%;
    height: 100%;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services .section-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--color-text-services-primary);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.services .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-services-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.service-node {
    position: relative;
    background: var(--color-glass-services-bg);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 20px;
    border: 1px solid var(--color-glass-services-border);
    padding: 2.5rem;
    perspective: 1000px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.service-node::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--color-accent-services-2), transparent 40%);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-node:hover::before {
    opacity: 1;
}

.node-content {
    transform-style: preserve-3d;
}

.node-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-accent-services-2), var(--color-accent-services-3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(56, 139, 253, 0.3);
}

.node-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.service-node h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-services-primary);
    margin-bottom: 1rem;
}

.service-node p {
    font-size: 1rem;
    color: var(--color-text-services-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.node-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-services-secondary);
}

.node-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.node-features li::before {
    content: '✓';
    color: var(--color-accent-services-1);
    font-weight: 700;
}

.technology-showcase {
    text-align: center;
}

.tech-header {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-services-primary);
    margin-bottom: 2rem;
}

#tech-orb-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto;
    cursor: grab;
}

#tech-orb-container:active {
    cursor: grabbing;
}

/* Scroll Animations */
.services .section-header, .services .service-node, .services .technology-showcase {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services .is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Base Styles */
:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --accent-color: #f72585;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
    --gradient-2: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background-color: var(--light-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Background Elements */
.services-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.8;
}

#gradient-canvas {
    width: 100%;
    height: 100%;
    --gradient-color-1: #4361ee;
    --gradient-color-2: #3f37c9;
    --gradient-color-3: #f72585;
    --gradient-color-4: #4895ef;
}

.particle-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-tech-icons .icon {
    position: absolute;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.title-wrapper {
    display: inline-block;
    position: relative;
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--dark-color);
}

.section-title .title-line {
    display: block;
}

.section-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.title-rotating-words {
    position: relative;
    display: inline-block;
    height: 1.2em;
    overflow: hidden;
}

.title-rotating-words .word {
    display: block;
    animation: rotateWords 9s infinite;
    opacity: 0;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
}

.title-rotating-words .word:nth-child(2) {
    animation-delay: 3s;
}
.title-rotating-words .word:nth-child(3) {
    animation-delay: 6s;
}

@keyframes rotateWords {
    0% {
        opacity: 0;
        transform: translateY(1em);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    35% {
        opacity: 0;
        transform: translateY(-1em);
    }
    100% {
        opacity: 0;
        transform: translateY(-1em);
    }
}

.title-decoration {
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 1rem;
}

.title-wave {
    width: 100%;
    height: 100%;
}

.title-wave path {
    fill: var(--primary-color);
    opacity: 0.2;
}

.section-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    color: var(--dark-color);
    opacity: 0.8;
}

.subtitle-highlight {
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 3rem;
    height: 0.25rem;
    background: var(--accent-color);
    border-radius: 0.25rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.service-card {
    position: relative;
    perspective: 1000px;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transition: var(--transition);
    z-index: 2;
    overflow: hidden;
}

.service-card:hover .service-card-inner {
    transform: translateY(-0.5rem);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.15);
}

.service-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover .service-card-hover {
    opacity: 0.1;
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.icon-3d {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: 50%;
    color: white;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.service-card:hover .icon-3d {
    transform: rotateY(180deg) scale(1.1);
    background: var(--gradient-2);
}

.icon-3d svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
    position: relative;
    z-index: 2;
}

.icon-background {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-1);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.icon-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.icon-particle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, white 0%, transparent 70%);
    opacity: 0.3;
    animation: rotateParticles 10s linear infinite;
}

@keyframes rotateParticles {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
}

.service-card p {
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.feature-check {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    fill: var(--primary-color);
}

.service-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.service-tech-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-weight: 600;
}

.service-card-cta {
    position: relative;
    z-index: 3;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
    overflow: hidden;
    position: relative;
}

.cta-button svg {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    fill: currentColor;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: var(--transition);
}

.cta-button:hover::before {
    opacity: 1;
}

/* Technology Showcase */
.technology-showcase {
    margin-bottom: 6rem;
}

.tech-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.tech-header h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
}

.tech-header h3::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 0.25rem;
    background: var(--accent-color);
    border-radius: 0.25rem;
}

.tech-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tech-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.tech-icon:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--transition);
    z-index: 2;
}

.tech-icon:hover img {
    transform: scale(1.2);
}

.tech-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.tech-icon:hover .tech-wave {
    transform: scaleX(1);
}

.tech-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.tech-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
}

/* Call to Action */
.services-cta {
    position: relative;
    padding: 4rem;
    background: var(--gradient-1);
    border-radius: 1rem;
    color: white;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    fill: currentColor;
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-secondary svg {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    fill: currentColor;
    transition: var(--transition);
}

.btn-secondary:hover svg {
    transform: translateX(5px);
}

.cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cta-particle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services-cta {
        padding: 3rem 2rem;
    }
    
    .tech-logos {
        gap: 1rem;
    }
    
    .tech-icon {
        width: 70px;
        height: 70px;
    }
    
    .tech-icon img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-icon img {
        width: 30px;
        height: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Classes */
[data-splitting] .char {
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.5, 0, 0.5, 1) forwards;
    animation-delay: calc(0.1s * var(--char-index));
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-transition-in] {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-micro-interaction="pulse"] {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}



/* CTA Section - Self-contained Styles */
.cta-section {
    --cta-primary: #4361ee;
    --cta-primary-light: #4895ef;
    --cta-secondary: #3f37c9;
    --cta-accent: #f72585;
    --cta-dark: #1a1a2e;
    --cta-light: #f8f9fa;
    --cta-gradient-1: linear-gradient(135deg, var(--cta-primary) 0%, var(--cta-secondary) 100%);
    --cta-gradient-2: linear-gradient(135deg, var(--cta-accent) 0%, #b5179e 100%);
    --cta-card-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --cta-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --cta-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    color: var(--cta-light);
    background-color: var(--cta-dark);
    isolation: isolate;
}

.cta-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Background Elements - Scoped to CTA */
.cta-section .cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-section .particle-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.cta-section .gradient-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--cta-gradient-1);
    opacity: 0.9;
}

/* Content Layout - Scoped */
.cta-section .cta-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-section .cta-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Typography - Scoped */
.cta-section .cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.cta-section .cta-title .title-line {
    display: block;
}

.cta-section .cta-title .highlight {
    color: var(--cta-accent);
    position: relative;
    display: inline-block;
}

.cta-section .cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* Buttons - Scoped */
.cta-section .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-section .cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--cta-transition);
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    min-width: 180px;
}

.cta-section .cta-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.4s var(--cta-ease-out);
}

.cta-section .cta-btn .btn-icon {
    width: 20px;
    height: 20px;
    margin-left: 0.75rem;
    fill: currentColor;
    transition: transform 0.4s var(--cta-ease-out);
    position: relative;
    z-index: 2;
}

.cta-section .cta-btn .btn-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cta-gradient-2);
    opacity: 0;
    transition: opacity 0.4s var(--cta-ease-out);
    z-index: 1;
}

.cta-section .cta-btn .btn-focus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
    z-index: 0;
}

.cta-section .cta-btn.primary {
    background: var(--cta-light);
    color: var(--cta-primary);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
}

.cta-section .cta-btn.secondary {
    background: transparent;
    color: var(--cta-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-section .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(67, 97, 238, 0.4);
}

.cta-section .cta-btn:hover .btn-text {
    transform: translateX(5px);
}

.cta-section .cta-btn:hover .btn-icon {
    transform: translateX(8px);
}

.cta-section .cta-btn:hover .btn-hover {
    opacity: 1;
}

.cta-section .cta-btn:focus {
    outline: none;
}

.cta-section .cta-btn:focus .btn-focus {
    width: 120%;
    height: 300%;
    opacity: 0;
    transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out 0.1s;
}

.cta-section .cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Assurance Items - Scoped */
.cta-section .cta-assurance {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .assurance-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    transition: var(--cta-transition);
}

.cta-section .assurance-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.cta-section .assurance-icon {
    width: 20px;
    height: 20px;
    fill: var(--cta-accent);
    flex-shrink: 0;
}

.cta-section .assurance-text {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Decorative Elements - Scoped */
.cta-section .cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cta-section .floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.cta-section .shape {
    position: absolute;
    opacity: 0.1;
    transition: transform 0.6s var(--cta-ease-out), opacity 0.4s ease;
}

.cta-section .shape.triangle {
    width: 100px;
    height: 100px;
    background: var(--cta-accent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 20%;
    left: 10%;
}

.cta-section .shape.circle {
    width: 80px;
    height: 80px;
    background: var(--cta-primary-light);
    border-radius: 50%;
    top: 60%;
    left: 80%;
}

.cta-section .shape.square {
    width: 60px;
    height: 60px;
    background: var(--cta-light);
    top: 30%;
    left: 70%;
}

/* Animations - Scoped */
@keyframes cta-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.cta-section [data-splitting] .line {
    overflow: hidden;
}

.cta-section [data-splitting] .word {
    display: inline-block;
    transform: translateY(1em);
    opacity: 0;
    animation: cta-fadeUp 0.8s var(--cta-ease-out) forwards;
    animation-delay: calc(0.1s * var(--word-index));
}

@keyframes cta-fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design - Scoped */
@media (max-width: 992px) {
    .cta-section {
        padding: 5rem 0;
    }
    
    .cta-section .cta-content {
        gap: 2rem;
    }
    
    .cta-section .cta-buttons {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-section .assurance-item {
        padding: 0.5rem 1rem;
    }
    
    .cta-section .shape {
        display: none;
    }
}

@media (max-width: 576px) {
    .cta-section .container {
        padding: 0 1.5rem;
    }
    
    .cta-section .cta-title {
        font-size: 2rem;
    }
    
    .cta-section .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-section .cta-btn {
        width: 100%;
    }
    
    .cta-section .cta-assurance {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}


/* ====================================================== */
/* ULTIMATE ADVANCED & REIMAGINED CERTIFICATION (CSS)    */
/* ====================================================== */

.certification {
    position: relative;
    padding: clamp(5rem, 12vw, 10rem) 0;
    background-color: #010409;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Advanced, multi-layered background */
.certification-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.certification-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(46, 160, 67, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    animation: bg-zoom 80s infinite;
}
.certification-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, #010409 90%);
}

@keyframes bg-zoom {
    0% { background-size: 25px 25px; }
    50% { background-size: 35px 35px; }
    100% { background-size: 25px 25px; }
}

.certification .container {
    position: relative;
    z-index: 2;
}

.certification .section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.certification .section-title {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #e6edf3;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(230, 237, 243, 0.1);
}

.certification .section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #848d97;
    max-width: 650px;
    margin: 0 auto;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    align-items: center;
}

/* --- Certificate Viewer Styling --- */
.certificate-viewer {
    perspective: 1500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.certificate-frame {
    position: relative;
    background: linear-gradient(145deg, #1c222c, #11151c);
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.frame-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.15) 50%, transparent 80%);
    background-size: 300% 100%;
    animation: shine-effect 4s infinite linear;
    pointer-events: none;
}

@keyframes shine-effect {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.view-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    color: #c9d1d9;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-fullscreen-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: #58a6ff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.1);
}

/* --- Verification Details Styling --- */
.verification-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.verification-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.verification-header i {
    font-size: 2rem;
    color: #2ea043;
    filter: drop-shadow(0 0 10px rgba(46, 160, 67, 0.7));
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.verification-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #e6edf3;
}

.details-card {
    background: linear-gradient(145deg, #161b22, #0d1117);
    border: 1px solid rgba(46, 160, 67, 0.3);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 0 30px rgba(46, 160, 67, 0.1);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-left: 3px solid #238636;
    padding-left: 1rem;
}

.detail-label {
    font-size: 0.9rem;
    color: #848d97;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c9d1d9;
}

.verify-online-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #238636;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #2ea043;
    box-shadow: 0 5px 15px rgba(46, 160, 67, 0.2);
}

.verify-online-btn:hover {
    background: #2ea043;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(46, 160, 67, 0.3);
}

/* --- Lightbox & Scroll Animations --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 9, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.lightbox-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.close-lightbox-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.close-lightbox-btn:hover {
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255,255,255,0.2);
}

.lightbox-modal.is-visible .lightbox-image {
    transform: scale(1);
}

.certification .section-header, .certification .certificate-viewer, .certification .verification-details {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.certification .is-visible {
    opacity: 1;
    transform: translateY(0);
}




/* Footer Styles - Self-contained with no variable conflicts */
.footer {
    position: relative;
    background-color: #0f172a; /* Dark blue background */
    color: #e2e8f0; /* Light gray text */
    padding: 4rem 0 0;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Background Elements */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 80%);
}

/* Container Layout */
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* About Section */
.footer-about {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.logo-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    filter: blur(15px);
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-description {
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    z-index: 2;
}

.social-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(168, 85, 247, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-link:hover .social-hover {
    opacity: 1;
}

/* Links Section */
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    border-radius: 3px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.link-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover .link-icon {
    transform: scale(1.2);
    fill: #6366f1;
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

.nav-link:hover .link-underline {
    width: 100%;
}

/* Contact Section */
.footer-contact {
    display: flex;
    flex-direction: column;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #6366f1;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-text span:first-child {
    font-size: 0.85rem;
    color: #94a3b8;
}

.contact-text span:last-child,
.contact-text a {
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #6366f1;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-legal {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-legal p {
    margin: 0.25rem 0;
}

.scroll-top {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.scroll-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .contact-item {
        gap: 0.75rem;
    }
}