/* 
    GIFTECH INNOVATORS - PREMIUM STYLESHEET 
    Design Style: Minimalist Enterprise / EdTech
    Architecture: Root Variables -> Global -> Components -> Sections
*/

:root {
    /* Primary Brand Colors */
    --primary: #FF3D00;
    --primary-hover: #E63700;
    --primary-soft: rgba(255, 61, 0, 0.08);
    
    /* Neutral Palette */
    --black: #1d1c1c;
    --dark-gray: #333333;
    --text-muted: #666666;
    --bg-light: #F7F8FA;
    --white: #FFFFFF;
    
    /* Layout Properties */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. GLOBAL RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Premium Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* 2. NAVIGATION STYLES */
.site-header {
    box-shadow: 0 8px 30px rgba(17, 17, 17, 0.03);
}

.topbar {
    background: linear-gradient(90deg, #ff4d1a 0%, var(--primary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.75rem;
}

.topbar-link {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.topbar-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.topbar-link:hover::after {
    width: 100%;
}

.site-nav {
    transition: var(--transition);
}

.site-nav .container {
    position: relative;
}

#main-nav {
    transition: var(--transition);
}

/* The "Glass" effect when scrolling */
#main-nav.bg-white\/80 {
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-toggle {
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--primary);
    border-color: rgba(255, 61, 0, 0.2);
    transform: translateY(-1px);
}

.mobile-nav-panel {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .mobile-nav-panel .container {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .mobile-nav-panel a {
        padding: 0.375rem 0 !important;
        font-size: 0.875rem !important;
    }
}

/* Hover underline effect for links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* 3. BUTTONS & CTA COMPONENTS */
.btn-premium {
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 61, 0, 0.2);
}

/* 4. HERO SECTION STYLING */
.hero-gradient-text {
    background: linear-gradient(to right, var(--primary), #FF8A00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Soft orange blurs in background */
.hero-blur {
    filter: blur(120px);
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

/* 5. SOLUTION CARDS (DUAL ARM) */
/* The Education Card (Light) */
.solution-card-light {
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.solution-card-light:hover {
    background: var(--white);
    border-color: var(--primary-soft);
    transform: translateY(-10px);
}

/* The SaaS/System Card (Dark) */
.solution-card-dark {
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.solution-card-dark:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Dashboard Mockup Interaction */
.mockup-container {
    perspective: 1000px;
}

.mockup-window {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card-dark:hover .mockup-window {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.05);
}

/* 6. FEATURE GRID CARDS */
.feature-card {
    border: 1px solid transparent;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(255, 61, 0, 0.1);
    background: var(--white);
    box-shadow: var(--shadow-premium);
}

.feature-icon-box {
    transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* 7. TESTIMONIAL / SUCCESS SECTION */
.success-bg-pattern {
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary);
}

/* 8. FOOTER STYLING */
/* Wave animation */
.footer-wave {
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: -1px; /* Removes gap */
}

.footer-link {
    transition: var(--transition);
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* 9. REUSABLE ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* 10. RESPONSIVE REFINEMENTS */
@media (max-width: 991px) {
    :root {
        --radius-lg: 24px;
    }
    
    h1 {
        font-size: 3.5rem !important;
        line-height: 1.1 !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }

    h3 {
        font-size: 1.875rem !important;
    }
    
    .solution-card-light, .solution-card-dark {
        padding: 2.5rem !important;
    }

    .topbar {
        font-size: 0.7rem;
    }

    .topbar-contact, .topbar-portal {
        gap: 0.5rem !important;
    }

    .site-nav {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    h4 {
        font-size: 1.125rem !important;
    }

    h5 {
        font-size: 1rem !important;
    }
    
    .btn-premium {
        width: 100%; /* Full width buttons on mobile for better UX */
    }
    
    .section-padding {
        padding: 60px 0;
    }

    .topbar {
        font-size: 0.65rem;
    }

    .topbar-contact a, .topbar-portal a {
        display: flex;
        align-items: center;
    }

    .topbar-contact a i, .topbar-portal a i {
        margin-right: 0.25rem;
    }

    .topbar-link {
        font-weight: 500;
    }

    .site-nav {
        padding-top: 0.375rem !important;
        padding-bottom: 0.375rem !important;
    }

    .site-nav .container {
        gap: 0.5rem;
    }

    .mobile-nav-panel .container {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .mobile-nav-panel a {
        padding: 0.375rem 0 !important;
        font-size: 0.875rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .site-header {
        box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
    }

    .gap-10 {
        gap: 1.5rem !important;
    }

    .gap-8 {
        gap: 1.5rem !important;
    }

    .p-10 {
        padding: 1.5rem !important;
    }

    .p-12 {
        padding: 1.5rem !important;
    }

    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* 11. SCROLLBAR (Premium Chrome/Safari/Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #DDD;
    border-radius: 10px;
    border: 3px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* Custom Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Ensure the main image circle stays sharp */
.rounded-full img {
    object-position: center top; /* Adjust this if the faces are cut off */
}

/* Responsive tweaks for the grid */
@media (max-width: 1024px) {
    .container {
        text-align: center;
    }
    .flex.items-start {
        justify-content: center;
    }
    .flex.flex-wrap {
        justify-content: center;
    }
}


/* Infinite Flowing Line Animation */
.draw-path-continuous {
    /* The dash pattern: 10px dash, 10px gap */
    stroke-dasharray: 10 10; 
    /* Animate the offset to create movement */
    animation: flow-line 20s linear infinite;
}

@keyframes flow-line {
    from {
        stroke-dashoffset: 200; /* Pattern start */
    }
    to {
        stroke-dashoffset: 0; /* Pattern end - creates seamless loop */
    }
}

/* Reverse flow for visual variety */
.draw-path-reverse {
    stroke-dasharray: 10 10;
    animation: flow-line-reverse 25s linear infinite;
}

@keyframes flow-line-reverse {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 200;
    }
}

/* Floating icons (keep from previous step) */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* Pulsing background nodes */
.dot-pulse {
    animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0.1; }
}