/**
 * CHYBYKE STUDIOS - MAIN STYLESHEET
 * =================================
 * A comprehensive CSS file for a modern web development portfolio website
 * 
 * FEATURES INCLUDED:
 * - Responsive design with mobile-first approach
 * - Glass morphism effects and modern UI elements
 * - Advanced grid layouts (7×3 desktop, 3×7 tablet/mobile)
 * - Premium modal system with animations and 3D effects
 * - Interactive service cards with hover transformations
 * - Smooth animations and transitions throughout
 * - Mobile navigation with slide-out menu
 * - Intersection observer scroll animations
 * 
 * TECHNOLOGY STACK:
 * - CSS3 with advanced features (Grid, Flexbox, Transforms, Filters)
 * - Modern animation techniques (Keyframes, Cubic-bezier timing)
 * - Responsive breakpoints for all device sizes
 * - Custom properties and modern CSS methodologies
 */

/* ==========================================================================
   BASE STYLES AND RESETS - Applied on all devices
   ========================================================================== */

/* CSS Custom Properties for Beautiful Gradients */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-cool: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-vibrant: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    --gradient-sunset: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ocean: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    --gradient-forest: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-royal: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Prevent horizontal overflow on all devices */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Beautiful scrollbar with gradient */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
    transform: scale(1.1);
}

/* Selection colors with gradient effect */
::selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

::-moz-selection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* CSS Reset - Remove default margins, padding, and set consistent box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* Include padding and border in element width/height */
    max-width: 100%;         /* Prevent any element from exceeding container width */
}

/* Specific elements that commonly cause overflow */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure text doesn't overflow */
p, h1, h2, h3, h4, h5, h6, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.8; /* Added line spacing for better readability */
}

/* Body base styles - Sets up the foundation for the entire website */
body {
    font-family: 'Inter', sans-serif;  /* Modern, readable font family */
    line-height: 2.6;                  /* Comfortable reading line height */
    color: #1F2A44;                    /* Primary text color - dark blue */
    background: #F8FAFC;               /* Light gray background */
    position: relative;
    overflow-x: hidden;                /* Prevent horizontal scroll */
    width: 100%;                       /* Full width */
    max-width: 100vw;                  /* Never exceed viewport width */
    padding-top: 0px;                 /* Space for fixed navbar */
}

/* Beautiful gradient overlay for enhanced visual appeal */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   LAYOUT CONTAINERS - Responsive on all devices
   ========================================================================== */

/* Main container class - Centers content and provides consistent padding */
.container {
    max-width: 1200px;        /* Maximum width for large screens */
    width: 100%;              /* Full width on smaller screens */
    margin: 0 auto;           /* Center horizontally */
    padding: 0 20px;          /* Horizontal padding for content breathing room */
    box-sizing: border-box;   /* Include padding in width calculation */
}

/* ==========================================================================
   NAVIGATION SYSTEM - Desktop default with mobile adjustments in media queries
   ========================================================================== */

/* Main navigation bar - Always visible sticky header with modern glass effect */
.navbar {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);             /* Subtle gradient background */
    backdrop-filter: blur(20px);                      /* Modern glass effect */
    -webkit-backdrop-filter: blur(20px);             /* Safari support */
    box-shadow: 0 4px 32px rgba(102, 126, 234, 0.1); /* Colorful shadow */
    position: fixed;                                   /* Fixed position - always visible */
    top: 0;                                           /* Stick to top of viewport */
    left: 0;                                          /* Align to left edge */
    right: 0;                                         /* Align to right edge */
    width: 100%;                                      /* Full width */
    z-index: 9998;                                    /* Above other content but below WhatsApp */
    border-radius: 0 0 12px 12px;                    /* Rounded bottom corners */
    border-bottom: 1px solid rgba(102, 126, 234, 0.1); /* Subtle gradient border */
    transition: all 0.3s ease;                       /* Smooth transitions */
}

/* Navigation container - Flexbox layout for logo and menu positioning */
.navbar .container {
    display: flex;                    /* Flexbox for horizontal layout */
    justify-content: space-between;   /* Logo left, menu right on desktop */
    align-items: center;              /* Vertically center items */
}

/* Logo styling - Bold branding element with gradient and consistent sizing */
.logo {
    font-size: 2rem;                             /* Large, prominent size */
    font-weight: 700;                            /* Bold weight for impact */
    background: var(--gradient-primary);         /* Beautiful gradient text */
    -webkit-background-clip: text;               /* Clip background to text */
    -webkit-text-fill-color: transparent;       /* Make text transparent to show gradient */
    background-clip: text;                       /* Standard property */
    text-decoration: none;                       /* Remove default link underline */
    transition: all 0.3s ease;                  /* Smooth hover transition */
    position: relative;
    text-transform: uppercase;                  /* Uppercase for modern look */
}

/* Logo hover effect */
.logo:hover {
    background: var(--gradient-secondary);       /* Change gradient on hover */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);                 /* Subtle lift effect */
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    letter-spacing: -0.02em;                     /* Tight letter spacing for modern look */
}

/* Desktop navigation menu - Horizontal flexbox layout */
.nav-menu {
    display: flex;        /* Horizontal layout for desktop */
    list-style: none;     /* Remove default list bullets */
}

/* Navigation menu items - Spacing and animation setup */
.nav-menu li {
    margin-left: 24px;             /* Space between menu items */
    opacity: 0;                    /* Start invisible for animation */
    transform: translateX(20px);   /* Start offset for slide-in animation */
    animation: slideIn 0.5s ease forwards;  /* Animate into view */
}

/* Staggered animation delays for menu items - Creates wave effect */
.nav-menu li:nth-child(1) { animation-delay: 0.4s; }  /* Dashboard */
.nav-menu li:nth-child(2) { animation-delay: 0.5s; }  /* Stack */
.nav-menu li:nth-child(3) { animation-delay: 0.6s; }  /* Solution */
.nav-menu li:nth-child(4) { animation-delay: 0.7s; }  /* Deployment */
.nav-menu li:nth-child(5) { animation-delay: 0.8s; }  /* AI */
.nav-menu li:nth-child(6) { animation-delay: 0.9s; }  /* Project */

/* Navigation link styling - Clean, modern link appearance */
.nav-menu a {
    text-decoration: none;        /* Remove underlines */
    color: #1F2A44;              /* Dark text color */
    font-weight: 600;            /* Semi-bold weight */
    font-size: 1rem;             /* Standard readable size */
    transition: color 0.5s ease; /* Smooth color transition on hover */
}

/* Navigation link hover effect - Brand color highlight */
.nav-menu a:hover {
    color: #3B82F6;  /* Change to brand blue on hover */
}

/* Mobile navigation controls - Hidden on desktop, visible on mobile */
.nav-toggle, .nav-close {
    display: none;        /* Hidden by default (desktop) */
    font-size: 1.5rem;    /* Readable icon size */
    cursor: pointer;      /* Pointer cursor for interactivity */
    color: #1F2A44;       /* Match navigation text color */
}

/* ==========================================================================
   SECTION STYLING - Base styles for all content sections
   ========================================================================== */

/* Universal section styling - Consistent spacing and animation setup */
.section {
    padding: 80px 0;                    /* Generous vertical padding for breathing room */
    opacity: 0;                         /* Start invisible for scroll animation */
    transform: translateY(20px);        /* Start slightly below for slide-up effect */
    animation: fadeInUp 0.8s ease forwards;  /* Animate into view */
}

/* Section titles - Large, prominent headings for each section */
.section-title {
    text-align: center;     /* Center-aligned titles */
    margin-bottom: 0px;    /* Space below title */
    font-size: 2.25rem;     /* Large, readable size (smaller on mobile via media queries) */
    color: #1F2A44;         /* Dark text color */
    font-weight: 700;       /* Bold weight for emphasis */
}

/* ==========================================================================
   HERO SECTION - Main landing area with background image and CTA
   ========================================================================== */

/* 
   HERO CUSTOMIZATION GUIDE:
   ========================
   
   All hero properties are now controlled by CSS custom properties (variables) 
   defined in the :root selector below. To customize the hero section, simply 
   modify these variables:
   
   LAYOUT ADJUSTMENTS:
   - --hero-min-height: Change hero section height (default: 100vh)
   - --hero-padding-top/bottom: Adjust vertical spacing
   - --hero-container-max-width: Control content width
   
   COLORS & GRADIENTS:
   - --hero-gradient-start/end: Change overlay colors
   - --hero-overlay-opacity: Adjust background transparency
   - --hero-highlight-gradient: Customize highlight text colors
   
   TYPOGRAPHY:
   - --hero-title-size: Main heading size
   - --hero-subtitle-size: Subtitle size
   - --hero-title-weight: Font weight
   
   ANIMATIONS:
   - --hero-scale-duration: Entrance animation timing
   - --hero-fade-delay: Stagger animation delays
   - --hero-gradient-shift-duration: Highlight animation speed
   
   CTA BUTTON:
   - --hero-cta-gradient: Button background
   - --hero-cta-border-radius: Button roundness
   - --hero-cta-font-size: Button text size
   
   MOBILE RESPONSIVENESS:
   Mobile-specific variables are prefixed with --hero-mobile- and --hero-small-mobile-
   These automatically apply at 768px and 480px breakpoints respectively.
*/

/* Hero CSS Custom Properties - Easy adjustment variables */
:root {
    /* Hero Layout Variables */
    --hero-min-height: 100vh;
    --hero-padding-top: 180px;
    --hero-padding-bottom: 250px;
    --hero-padding-horizontal: 20px;
    --hero-container-max-width: 1200px;
    
    /* Hero Background Variables */
    --hero-overlay-opacity: 0.8;
    --hero-gradient-start: rgba(59, 130, 246, var(--hero-overlay-opacity));
    --hero-gradient-end: rgba(165, 180, 252, var(--hero-overlay-opacity));
    --hero-gradient-direction: 135deg;
    
    /* Hero Typography Variables */
    --hero-title-size: 3.5rem;
    --hero-title-weight: 700;
    --hero-title-line-height: 1.1;
    --hero-title-letter-spacing: -0.02em;
    --hero-title-margin-bottom: 55px;
    --hero-subtitle-size: 1.25rem;
    --hero-subtitle-weight: 400;
    --hero-subtitle-line-height: 1.6;
    --hero-subtitle-opacity: 0.9;
    --hero-subtitle-max-width: 600px;
    --hero-subtitle-margin-bottom: 35px;
    
    /* Hero Animation Variables */
    --hero-scale-duration: 1s;
    --hero-fade-duration: 1s;
    --hero-fade-delay: 0.3s;
    --hero-gradient-shift-duration: 4s;
    --hero-cta-delay: 0.6s;
    
    /* Hero Highlight Text Variables */
    --hero-highlight-gradient: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    --hero-highlight-weight: 800;
    --hero-highlight-size: 300%;
    
    /* Hero CTA Button Variables */
    --hero-cta-padding: 20px 45px;
    --hero-cta-border-radius: 50px;
    --hero-cta-font-size: 1.2rem;
    --hero-cta-font-weight: 600;
    --hero-cta-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hero-cta-gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    --hero-cta-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    --hero-cta-shadow-hover: 0 15px 40px rgba(102, 126, 234, 0.4);
    --hero-cta-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --hero-cta-hover-scale: 1.05;
    --hero-cta-hover-translate: -3px;
    
    /* Hero Mobile Variables */
    --hero-mobile-title-size: 2.5rem;
    --hero-mobile-highlight-size: 2.2rem;
    --hero-mobile-subtitle-size: 1.1rem;
    --hero-mobile-subtitle-width: 90%;
    --hero-mobile-subtitle-margin: 30px;
    --hero-mobile-cta-size: 1.1rem;
    --hero-mobile-cta-padding: 18px 35px;
    --hero-mobile-padding: 120px 20px;
    
    /* Hero Small Mobile Variables */
    --hero-small-mobile-title-size: 2.2rem;
    --hero-small-mobile-highlight-size: 2rem;
    --hero-small-mobile-subtitle-size: 1rem;
    --hero-small-mobile-subtitle-width: 95%;
    --hero-small-mobile-cta-size: 1rem;
    --hero-small-mobile-cta-padding: 16px 30px;
    --hero-small-mobile-padding: 100px 15px;
}

/* Hero section container - Full screen coverage with modern styling */
.hero {
    background: linear-gradient(var(--hero-gradient-direction), var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: #FFFFFF;              /* White text for contrast */
    text-align: center;          /* Center all hero content */
    min-height: var(--hero-min-height);
    padding: var(--hero-padding-top) var(--hero-padding-horizontal) var(--hero-padding-bottom);
    margin: 0;                   /* No margin for full-width effect */
    position: relative;          /* For absolute positioned background image */
    overflow: hidden;            /* Hide background image overflow */
    display: flex;               /* Flexbox for better content centering */
    align-items: center;         /* Vertically center content */
    justify-content: center;     /* Horizontally center content */
}

/* Hero background image - Full screen coverage */
.hero-bg-image {
    position: fixed;       /* Fixed position for full screen coverage */
    top: 0;               /* Align to top of viewport */
    left: 0;              /* Align to left of viewport */
    width: 100vw;         /* Full viewport width */
    height: 100vh;        /* Full viewport height */
    object-fit: cover;    /* Cover entire area while maintaining aspect ratio */
    z-index: -1;          /* Behind text content */
}

/* Hero container - Specific styling for full-screen hero */
.hero .container {
    position: fixed;              /* Ensure content stays above background */
    z-index: 1;                     /* Above background image */
    width: 100%;                    /* Full width within hero */
    max-width: var(--hero-container-max-width);
}

/* Hero main heading - Large, impactful title */
.hero h1 {
    font-size: var(--hero-title-size);
    margin-bottom: var(--hero-title-margin-bottom);
    animation: scaleIn var(--hero-scale-duration) ease;
    font-weight: var(--hero-title-weight);
    line-height: var(--hero-title-line-height);
    letter-spacing: var(--hero-title-letter-spacing);
}

/* Highlight text within hero heading */
.hero h1 .highlight-text {
    background: var(--hero-highlight-gradient);
    background-size: var(--hero-highlight-size) var(--hero-highlight-size);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift var(--hero-gradient-shift-duration) ease-in-out infinite;
    font-weight: var(--hero-highlight-weight);
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero subtitle - Secondary headline */
.subtitle {
    font-size: var(--hero-subtitle-size);
    margin-bottom: var(--hero-subtitle-margin-bottom);
    font-weight: var(--hero-subtitle-weight);
    opacity: var(--hero-subtitle-opacity);
    line-height: var(--hero-subtitle-line-height);
    max-width: var(--hero-subtitle-max-width);
    margin-left: auto;                    /* Center the subtitle */
    margin-right: auto;                   /* Center the subtitle */
    animation: fadeInUp var(--hero-fade-duration) ease var(--hero-fade-delay) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: var(--hero-subtitle-opacity);
        transform: translateY(0);
    }
}

/* Call-to-action button - Prominent button with hover effects */
.cta-button {
    display: inline-block;                    /* Inline-block for padding control */
    padding: var(--hero-cta-padding);
    background: var(--hero-cta-gradient);
    color: #FFFFFF;                          /* White text */
    text-decoration: none;                   /* Remove link underline */
    border-radius: var(--hero-cta-border-radius);
    font-weight: var(--hero-cta-font-weight);
    font-size: var(--hero-cta-font-size);
    position: relative;                      /* For pseudo-element effects */
    overflow: hidden;                        /* Hide overflow for effects */
    transition: var(--hero-cta-transition);
    box-shadow: var(--hero-cta-shadow);
    animation: fadeInUp var(--hero-fade-duration) ease var(--hero-cta-delay) both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

/* CTA button hover effects - Interactive feedback */
.cta-button:hover {
    background: var(--hero-cta-gradient-hover);
    transform: translateY(var(--hero-cta-hover-translate)) scale(var(--hero-cta-hover-scale));
    box-shadow: var(--hero-cta-shadow-hover);
}

/* ==========================================================================
   RESPONSIVE IMAGE STYLING
   ========================================================================== */

/* About section image - Responsive image with rounded corners */
.about-image {
    max-width: 100%;       /* Never exceed container width */
    height: auto;          /* Maintain aspect ratio */
    border-radius: 12px;   /* Rounded corners */
    margin: 24px auto;     /* Center horizontally with vertical margin */
    display: block;        /* Block display for margin auto centering */
}

/* ==========================================================================
   GRID LAYOUTS - Responsive grid systems for different content types
   ========================================================================== */

/* Standard content grids - Auto-fit responsive grids */
.feature-grid, .portfolio-grid, .ai-features, .contact-grid, .footer-grid {
    display: grid;                                        /* CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));  /* Responsive columns */
    gap: 24px;                                           /* Space between grid items */
    margin-top: 40px;                                    /* Space above grid */
    width: 100%;                                         /* Full width */
    max-width: 100%;                                     /* Never exceed container */
}

/* Mobile adjustments for grids */
@media (max-width: 768px) {
    /* Reduce container padding on mobile to prevent overflow */
    .container {
        padding: 0 15px;
    }
    
    /* Make grids single column on mobile */
    .feature-grid, .portfolio-grid, .ai-features, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
        gap: 16px;                   /* Smaller gap on mobile */
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Ensure all sections have proper mobile spacing */
    .section {
        padding: 0px 0;
    }
    
    /* Prevent any text or content overflow */
    body {
        overflow-x: hidden;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Ensure proper text wrapping on very small screens */
    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2; /* Added line spacing for better readability */
    }
}

/* Services grid - Special 7x3 desktop layout with responsive breakpoints */
.services-grid {
    display: grid;                     /* CSS Grid layout */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));  /* Responsive: auto-fit columns */
    gap: 20px;                        /* Space between service cards */
    margin-top: 40px;                 /* Space above grid */
    perspective: 1000px;              /* 3D perspective for hover effects */
    width: 100%;                      /* Full width */
    max-width: 100%;                  /* Never exceed container */
}

/* Desktop-only: 7-column layout for large screens */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(7, 1fr);  /* Desktop: 7 equal columns */
        grid-template-rows: repeat(3, 1fr);     /* Desktop: 3 equal rows */
    }
}

/* ==========================================================================
   SECTION SUBTITLE STYLING
   ========================================================================== */

/* Section subtitle for solution section - Descriptive text below titles */
.section-subtitle {
    text-align: center;        /* Center-aligned text */
    font-size: 1.2rem;         /* Slightly larger than body text */
    color: #64748B;            /* Muted gray color */
    margin-bottom: 40px;       /* Space below subtitle */
    font-weight: 400;          /* Normal weight */
    max-width: 600px;          /* Limit width for readability */
    margin-left: auto;         /* Center horizontally */
    margin-right: auto;        /* Center horizontally */
}

/* ==========================================================================
   SERVICE CARD STYLING - Enhanced interactive cards with glass morphism
   ========================================================================== */

/* Service card base styles - Modern glass morphism design with animations */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));  /* Semi-transparent gradient */
    backdrop-filter: blur(20px);              /* Glass blur effect */
    border: 1px solid rgba(59, 130, 246, 0.1);  /* Subtle border */
    border-radius: 16px;                      /* Rounded corners */
    padding: 24px;                           /* Internal spacing */
    cursor: pointer;                         /* Pointer cursor for interactivity */
    font-weight: 600;                        /* Semi-bold text */
    color: #1F2A44;                         /* Dark text color */
    display: flex;                          /* Flexbox for content alignment */
    flex-direction: column;                 /* Vertical layout */
    align-items: center;                    /* Center horizontally */
    justify-content: center;                /* Center vertically */
    text-align: center;                     /* Center text */
    min-height: 160px;                      /* Minimum height for consistency */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);  /* Smooth transitions */
    position: relative;                     /* For pseudo-element positioning */
    overflow: hidden;                       /* Hide overflow from animations */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);  /* Subtle shadow */
}

/* Service card hover animation overlay - Gradient sweep effect */
.service-card::before {
    content: '';                           /* Empty content for pseudo-element */
    position: absolute;                    /* Position relative to card */
    top: 0;                               /* Align to top */
    left: -100%;                          /* Start off-screen left */
    width: 100%;                          /* Full width */
    height: 100%;                         /* Full height */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));  /* Subtle gradient */
    transition: left 0.6s ease;           /* Smooth sweep animation */
    z-index: -1;                          /* Behind card content */
}

/* Activate hover overlay - Sweep gradient across card */
.service-card:hover::before {
    left: 0;  /* Move overlay into view */
}

/* Service card hover effects - 3D transform and enhanced styling */
.service-card:hover {
    transform: translateY(-8px) rotateX(5deg);    /* Lift and tilt for 3D effect */
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);  /* Enhanced shadow */
    border-color: rgba(59, 130, 246, 0.3);       /* Brighter border */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));  /* Brighter background */
}

/* Service card icon container - Gradient background with shadow */
.service-icon {
    width: 60px;                          /* Fixed width for consistency */
    height: 60px;                         /* Fixed height for consistency */
    background: linear-gradient(135deg, #3B82F6, #ff0000);  /* Blue to purple gradient */
    border-radius: 16px;                  /* Rounded corners */
    display: flex;                        /* Flexbox for centering */
    align-items: center;                  /* Center vertically */
    justify-content: center;              /* Center horizontally */
    margin-bottom: 16px;                  /* Space below icon */
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);  /* Blue shadow */
    transition: transform 0.3s ease;      /* Smooth transform transitions */
}

/* Service icon hover effect - Scale and 3D rotation */
.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);  /* Enlarge and rotate on card hover */
}

/* Icon styling within service icon container */
.service-icon i {
    font-size: 1.5rem;   /* Icon size */
    color: white;        /* White icon color for contrast */
}

/* Service card title styling */
.service-card h3 {
    font-size: 1rem;        /* Standard title size */
    font-weight: 700;       /* Bold weight */
    margin-bottom: 8px;     /* Space below title */
    color: #1F2A44;         /* Dark text color */
    line-height: 1.3;       /* Tight line height */
}

/* Service card description text */
.service-card p {
    font-size: 0.85rem;     /* Slightly smaller than body text */
    color: #64748B;         /* Muted gray color */
    margin: 0;              /* No margin */
    line-height: 1.4;       /* Comfortable reading line height */
    font-weight: 400;       /* Normal weight */
}

/* ==========================================================================
   BULLETPROOF MODAL SYSTEM - Simple, modern, and always works
   ========================================================================== */

/* Modal overlay - Full screen backdrop */
.modern-modal {
    display: none;                    /* Hidden by default */
    position: fixed;                  /* Fixed to viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);   /* Dark overlay */
    backdrop-filter: blur(10px);      /* Modern blur effect */
    z-index: 9999;                   /* Above everything */
    opacity: 0;                      /* Start invisible */
    transition: opacity 0.3s ease;   /* Smooth fade */
    
    /* Center the modal when shown */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Show state for modal */
.modern-modal.modal-show {
    display: flex !important;        /* Force show */
    opacity: 1;                      /* Fully visible */
}

/* Modal content container */
.modern-modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    
    /* Responsive width - works on all devices */
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    
    /* Responsive height */
    max-height: 90vh;
    overflow-y: auto;
    
    /* Animation */
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    position: relative;
}

/* Content animation when modal is shown */
.modern-modal.modal-show .modern-modal-content {
    transform: scale(1) translateY(0);
}

/* Modal header */
.modern-modal-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Close button */
.modern-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 600;
    
    transition: all 0.2s ease;
}

.modern-modal-close:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: scale(1.1);
}

/* Modal icon */
.modern-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 20px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.modern-modal-icon i {
    font-size: 2rem;
    color: white;
}

/* Modal title */
.modern-modal h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    
    /* Gradient text */
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal subtitle */
.modern-modal-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Modal body */
.modern-modal-body {
    padding: 0 30px 30px 30px;
}

/* Modal description */
.modern-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Feature grid */
.modern-modal-features {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

/* Feature items */
.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    transition: all 0.2s ease;
}

.modal-feature-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.modal-feature-item i {
    color: #3b82f6;
    font-size: 1.1rem;
    width: 20px;
}

.modal-feature-text {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 600;
}

/* Call to action buttons */
.modern-modal-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.modal-btn-secondary {
    background: #f8fafc;
    color: #3b82f6;
    border: 2px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.modal-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

/* ==========================================================================
   RESPONSIVE MODAL BREAKPOINTS - Mobile optimization
   ========================================================================== */

/* Tablet and mobile breakpoints */
@media (max-width: 768px) {
    .modern-modal {
        padding: 15px;
    }
    
    .modern-modal-content {
        max-width: 95vw;
        min-width: 280px;
        border-radius: 16px;
    }
    
    .modern-modal-header {
        padding: 25px 25px 15px 25px;
        border-radius: 16px 16px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 25px 25px 25px;
    }
    
    .modern-modal-close {
        top: 12px;
        right: 12px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .modern-modal-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .modern-modal-icon i {
        font-size: 1.5rem;
    }
    
    .modern-modal h2 {
        font-size: 1.5rem;
    }
    
    .modern-modal-subtitle {
        font-size: 0.9rem;
    }
    
    .modern-modal-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn-primary,
    .modal-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .modern-modal {
        padding: 10px;
    }
    
    .modern-modal-content {
        max-width: 98vw;
        border-radius: 12px;
    }
    
    .modern-modal-header {
        padding: 20px 20px 12px 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 20px 20px 20px;
    }
    
    .modern-modal-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .modern-modal-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .modern-modal-icon i {
        font-size: 1.2rem;
    }
    
    .modern-modal h2 {
        font-size: 1.3rem;
    }
    
    .modal-feature-item {
        padding: 12px;
        gap: 10px;
    }
    
    .modal-feature-text {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   SERVICE CARD STYLING - Enhanced interactive cards with glass morphism
   ========================================================================== */

/* ==========================================================================
   SERVICE CARD STYLING - Enhanced interactive cards with glass morphism
   ========================================================================== */

/* Service card base styles - Modern glass morphism design with animations */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));  /* Semi-transparent gradient */
    backdrop-filter: blur(20px);              /* Glass blur effect */
    border: 1px solid rgba(59, 130, 246, 0.1);  /* Subtle border */
    border-radius: 16px;                      /* Rounded corners */
    padding: 24px;                           /* Internal spacing */
    cursor: pointer;                         /* Pointer cursor for interactivity */
    font-weight: 600;                        /* Semi-bold text */
    color: #1F2A44;                         /* Dark text color */
    display: flex;                          /* Flexbox for content alignment */
    flex-direction: column;                 /* Vertical layout */
    align-items: center;                    /* Center horizontally */
    justify-content: center;                /* Center vertically */
    text-align: center;                     /* Center text */
    min-height: 160px;                      /* Minimum height for consistency */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);  /* Smooth transitions */
    position: relative;                     /* For pseudo-element positioning */
    overflow: hidden;                       /* Hide overflow from animations */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);  /* Subtle shadow */
}



/* Modal features grid - Container for feature list items */
.modern-modal-features {
    display: grid;           /* CSS Grid layout */
    gap: 18px;              /* Space between items */
    margin-bottom: 32px;    /* Space below entire features section */
}

/* Individual feature item - Interactive list item with gradient styling */
.modal-feature-item {
    display: flex;           /* Horizontal layout */
    align-items: center;     /* Vertically center content */
    gap: 16px;              /* Space between icon and text */
    padding: 20px;          /* Internal spacing */
    
    /* Subtle gradient background */
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.08) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    
    border-radius: 16px;                 /* Rounded corners */
    border-left: 4px solid transparent;  /* Transparent border for gradient border */
    border-image: linear-gradient(135deg, #3B82F6, #8B5CF6) 1;  /* Gradient border left */
    transition: all 0.3s ease;           /* Smooth transitions */
    position: relative;                  /* For hover effect */
    overflow: hidden;                    /* Contain hover animations */
}

/* Feature item hover effect - Gradient sweep animation */
.modal-feature-item::before {
    content: '';                       /* Empty content for pseudo-element */
    position: absolute;                /* Position within item */
    top: 0;
    left: -100%;                      /* Start off-screen left */
    width: 100%;                      /* Full width */
    height: 100%;                     /* Full height */
    
    /* Gradient for hover effect */
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
        
    transition: left 0.5s ease;       /* Smooth animation */
    z-index: 0;                      /* Behind content */
}

/* Activate hover effect - Move gradient into view */
.modal-feature-item:hover::before {
    left: 0;  /* Move to visible position */
}

/* Additional hover effects - Slide and shadow */
.modal-feature-item:hover {
    transform: translateX(8px);                      /* Slide right */
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);  /* Add shadow */
}

/* Feature item icon styling */
.modal-feature-item i {
    color: #3B82F6;           /* Brand blue color */
    font-size: 1.3rem;        /* Large icon size */
    width: 24px;             /* Fixed width for alignment */
    z-index: 1;              /* Above hover gradient */
    position: relative;      /* For z-index to work */
}

/* Feature item text styling */
.modal-feature-text {
    font-size: 1rem;          /* Standard text size */
    color: #1F2A44;          /* Dark text color */
    font-weight: 600;         /* Semi-bold weight */
    z-index: 1;              /* Above hover gradient */
    position: relative;      /* For z-index to work */
}

/* ==========================================================================
   MODAL CALL-TO-ACTION BUTTONS - Action buttons at bottom of modal
   ========================================================================== */

/* CTA container - Holds primary and secondary buttons */
.modern-modal-cta {
    display: flex;              /* Horizontal layout */
    gap: 16px;                 /* Space between buttons */
    justify-content: center;    /* Center buttons */
    margin-top: 32px;          /* Space above buttons */
}

/* Primary action button - Gradient background with animation */
.modal-btn-primary {
    /* Tri-color gradient background */
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #EC4899 100%);
    
    color: white;               /* White text */
    border: none;               /* No border */
    padding: 16px 32px;         /* Generous padding */
    border-radius: 16px;        /* Rounded corners */
    font-weight: 700;           /* Bold text */
    font-size: 1rem;            /* Standard text size */
    cursor: pointer;            /* Hand cursor */
    
    /* Custom animation timing for natural movement */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    text-decoration: none;      /* Remove link underline if <a> */
    display: inline-flex;       /* For content alignment */
    align-items: center;        /* Vertically center content */
    gap: 10px;                 /* Space between icon and text */
    
    /* Multi-layered shadow for depth */
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.4),  /* Blue outer shadow */
        0 4px 12px rgba(139, 92, 246, 0.3);  /* Purple inner shadow */
        
    position: relative;         /* For shimmer effect */
    overflow: hidden;           /* Contain shimmer animation */
}

.modal-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    transition: left 0.6s ease;
}

.modal-btn-primary:hover::before {
    left: 100%;
}

.modal-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(59, 130, 246, 0.5),
        0 8px 20px rgba(139, 92, 246, 0.4);
}

.modal-btn-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 14px 30px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.modal-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS - Media queries for different screen sizes
   ========================================================================== */

/* Tablet breakpoint (1024px and below) */
@media (max-width: 1024px) {
    /* Tablet grid layout - Change from 7×3 to 3×7 layout */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);  /* Tablet: 3 columns */
        grid-template-rows: repeat(7, 1fr);     /* Tablet: 7 rows */
        gap: 16px;                             /* Smaller gap */
        margin-top: 30px;                      /* Less margin */
    }
    
    /* Smaller service cards for tablet */
    .service-card {
        padding: 20px;        /* Less padding */
        min-height: 140px;    /* Smaller height */
    }
    
    /* Smaller icons for tablet */
    .service-icon {
        width: 50px;         /* Reduced size */
        height: 50px;
        margin-bottom: 12px; /* Less margin */
    }
    
    /* Smaller icon font size */
    .service-icon i {
        font-size: 1.2rem;   /* Smaller icon */
    }
    
    /* Smaller card title */
    .service-card h3 {
        font-size: 0.9rem;    /* Smaller text */
        margin-bottom: 6px;   /* Less margin */
    }
    
    /* Smaller card description */
    .service-card p {
        font-size: 0.75rem;   /* Smaller text */
    }
}

/* Small tablet / Large mobile breakpoint (768px and below) */
@media (max-width: 768px) {
    /* Maintain 3×7 grid but with smaller spacing */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);  /* Mobile: 3 columns */
        grid-template-rows: repeat(7, 1fr);     /* Mobile: 7 rows (same as tablet) */
        gap: 12px;                             /* Even smaller gap */
        margin-top: 30px;
    }
    
    /* Further reduce service card size */
    .service-card {
        padding: 16px;         /* Less padding */
        min-height: 120px;     /* Smaller height */
    }
    
    /* Even smaller icons */
    .service-icon {
        width: 45px;           /* Smaller icon */
        height: 45px;
        margin-bottom: 10px;   /* Less margin */
    }
    
    /* Smaller icon font */
    .service-icon i {
        font-size: 1.1rem;     /* Smaller icon */
    }
    
    /* Smaller card heading */
    .service-card h3 {
        font-size: 0.85rem;    /* Smaller text */
        margin-bottom: 4px;    /* Less margin */
    }
    
    /* Smaller description text */
    .service-card p {
        font-size: 0.7rem;     /* Smaller text */
    }
}

/* ==========================================================================
   ULTRA-RESPONSIVE MODAL BREAKPOINTS - Perfect adaptation for all devices
   ========================================================================== */

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
    .modern-modal-content {
        width: clamp(320px, 92vw, 550px);
        max-height: clamp(450px, 85vh, 700px);
        border-radius: 20px;
    }
    
    .modern-modal-header {
        padding: 28px 28px 20px 28px;
        border-radius: 20px 20px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 28px 28px;
    }
    
    .modern-modal h2 {
        font-size: 2.2rem;
    }
    
    .modern-modal-icon {
        width: 85px;
        height: 85px;
        border-radius: 24px;
    }
    
    .modern-modal-icon i {
        font-size: 2.2rem;
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .modern-modal {
        padding: 8px;
    }
    
    .modern-modal-content {
        width: clamp(300px, 96vw, 500px);
        max-height: clamp(400px, 92vh, 650px);
        border-radius: 18px;
        transform: scale(0.8) translateY(40px) rotateX(10deg);
    }
    
    .modern-modal-header {
        padding: 24px 24px 18px 24px;
        border-radius: 18px 18px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 24px 24px;
        max-height: calc(92vh - 180px);
    }
    
    .modern-modal-close {
        top: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.2rem;
    }
    
    .modern-modal-icon {
        width: 75px;
        height: 75px;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    
    .modern-modal-icon i {
        font-size: 2rem;
    }
    
    .modern-modal h2 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .modern-modal-subtitle {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    
    .modern-modal-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .modal-feature-item {
        padding: 16px;
        gap: 12px;
        border-radius: 12px;
    }
    
    .modal-feature-item i {
        font-size: 1.1rem;
    }
    
    .modal-feature-text {
        font-size: 0.9rem;
    }
    
    .modern-modal-cta {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    
    .modal-btn-primary,
    .modal-btn-secondary {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

/* Large mobile phones (480px and below) */
@media (max-width: 480px) {
    .modern-modal {
        padding: 6px;
    }
    
    .modern-modal-content {
        width: clamp(280px, 98vw, 400px);
        max-height: clamp(350px, 95vh, 600px);
        border-radius: 16px;
        transform: scale(0.85) translateY(30px) rotateX(8deg);
    }
    
    .modern-modal-header {
        padding: 20px 20px 16px 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 20px 20px;
        max-height: calc(95vh - 160px);
    }
    
    .modern-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        border-radius: 12px;
        font-size: 1.1rem;
    }
    
    .modern-modal-icon {
        width: 65px;
        height: 65px;
        border-radius: 18px;
        margin-bottom: 16px;
    }
    
    .modern-modal-icon i {
        font-size: 1.7rem;
    }
    
    .modern-modal h2 {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .modern-modal-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .modern-modal-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .modal-feature-item {
        padding: 12px;
        gap: 10px;
        border-radius: 10px;
    }
    
    .modal-feature-item i {
        font-size: 1rem;
    }
    
    .modal-feature-text {
        font-size: 0.85rem;
    }
    
    .modern-modal-cta {
        gap: 10px;
        margin-top: 16px;
    }
    
    .modal-btn-primary,
    .modal-btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* Small mobile phones (360px and below) */
@media (max-width: 360px) {
    .modern-modal {
        padding: 4px;
    }
    
    .modern-modal-content {
        width: clamp(270px, 99vw, 340px);
        max-height: clamp(320px, 97vh, 550px);
        border-radius: 14px;
        transform: scale(0.9) translateY(25px) rotateX(5deg);
    }
    
    .modern-modal-header {
        padding: 18px 18px 14px 18px;
        border-radius: 14px 14px 0 0;
    }
    
    .modern-modal-body {
        padding: 0 18px 18px;
        max-height: calc(97vh - 140px);
    }
    
    .modern-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .modern-modal-icon {
        width: 55px;
        height: 55px;
        border-radius: 16px;
        margin-bottom: 14px;
    }
    
    .modern-modal-icon i {
        font-size: 1.5rem;
    }
    
    .modern-modal h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .modern-modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .modern-modal-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    
    .modal-feature-item {
        padding: 10px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .modal-feature-item i {
        font-size: 0.9rem;
    }
    
    .modal-feature-text {
        font-size: 0.8rem;
    }
    
    .modern-modal-cta {
        gap: 8px;
        margin-top: 14px;
    }
    
    .modal-btn-primary,
    .modal-btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
}

/* Card styles - Unified styles for feature, service, portfolio, AI cards */
.feature-card, .service-card, .portfolio-card, .ai-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Animation delays for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

/* Animation delays for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
.service-card:nth-child(10) { animation-delay: 1.0s; }
.service-card:nth-child(11) { animation-delay: 1.1s; }
.service-card:nth-child(12) { animation-delay: 1.2s; }
.service-card:nth-child(13) { animation-delay: 1.3s; }
.service-card:nth-child(14) { animation-delay: 1.4s; }
.service-card:nth-child(15) { animation-delay: 1.5s; }
.service-card:nth-child(16) { animation-delay: 1.6s; }
.service-card:nth-child(17) { animation-delay: 1.7s; }
.service-card:nth-child(18) { animation-delay: 1.8s; }
.service-card:nth-child(19) { animation-delay: 1.9s; }
.service-card:nth-child(20) { animation-delay: 2.0s; }
.service-card:nth-child(21) { animation-delay: 2.1s; }

/* Animation delays for portfolio cards */
.portfolio-card:nth-child(1) { animation-delay: 0.2s; }
.portfolio-card:nth-child(2) { animation-delay: 0.4s; }
.portfolio-card:nth-child(3) { animation-delay: 0.6s; }

/* Animation delays for AI cards */
.ai-card:nth-child(1) { animation-delay: 0.2s; }
.ai-card:nth-child(2) { animation-delay: 0.4s; }
.ai-card:nth-child(3) { animation-delay: 0.6s; }
.ai-card:nth-child(4) { animation-delay: 0.8s; }
.ai-card:nth-child(5) { animation-delay: 1.0s; }
.ai-card:nth-child(6) { animation-delay: 1.2s; }

/* Card hover effects - Unified hover effects for all cards except service cards */
.feature-card:hover, .portfolio-card:hover, .ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Portfolio image - Responsive with hover effect */
.portfolio-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.03);
}

/* View project button - Consistent styling */
.view-project {
    background: #3B82F6;
    color: #FFFFFF;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.view-project:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

/* ==========================================================================
   PROJECT SECTION - Stunning Figma-style design with modern form
   ========================================================================== */

.project-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

/* Animated background elements */
.project-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.project-section .container {
    position: relative;
    z-index: 1;
}

/* Project header styling */
.project-header {
    text-align: center;
    margin-bottom: 80px;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.project-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main content layout */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Project info cards */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Contact details styling */
.contact-details {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

/* Modern form container */
.project-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.modern-project-form {
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-header h3 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.form-header p {
    color: #718096;
    font-size: 0.9rem;
}

/* Form grid layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.textarea-group {
    grid-column: 1 / -1;
}

.budget-group {
    grid-column: 1 / -1;
}

/* Input group styling */
.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-group textarea {
    min-height: 85px;
    resize: vertical;
    line-height: 1.4;
}

/* Custom select styling */
.input-group select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #718096;
    margin-top: 10px;
}

/* Input border animation */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.input-group input:focus + .input-border,
.input-group textarea:focus + .input-border {
    width: 100%;
}

/* Modern submit button */
.modern-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transition: left 0.5s ease;
}

.modern-submit-btn:hover .btn-bg {
    left: 100%;
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.modern-submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Form footer */
.form-footer {
    text-align: center;
}

.form-footer p {
    color: #718096;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .project-form-container {
        padding: 20px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modern-project-form {
        width: 100%;
        max-width: 100%;
    }
    
    .input-group {
        width: 100%;
        max-width: 100%;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 80px 0;
        overflow-x: hidden;
    }
    
    .project-section .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .project-title {
        font-size: 2.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
        max-width: 100%;
    }
    
    .project-info {
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-details {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-item {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .project-form-container {
        padding: 15px;
        border-radius: 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .modern-project-form {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .form-header p {
        word-wrap: break-word;
    }
    
    .info-card {
        padding: 25px;
        text-align: center;
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .contact-details {
        padding: 25px;
        width: 100%;
        max-width: 100%;
    }
    
    .input-group {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        width: 100%;
        max-width: 100%;
        padding: 12px 14px;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .modern-submit-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .project-section {
        padding: 60px 0;
        overflow-x: hidden;
    }
    
    .project-section .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .project-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .project-subtitle {
        font-size: 1rem;
    }
    
    .project-content {
        gap: 30px;
    }
    
    .project-form-container {
        padding: 12px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .form-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .contact-details {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .modern-submit-btn {
        padding: 16px;
        font-size: 0.9rem;
    }
}

/* Modal styles - Consistent styling for modals */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-content {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1F2A44;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #3B82F6;
}

/* Modal backdrop overlay - Dark background behind modals */
.modal-backdrop {
    display: none;             /* Hidden by default */
    position: fixed;           /* Fixed position */
    top: 0;                   /* Full viewport coverage */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);  /* Semi-transparent black */
    z-index: 9999;             /* Below modal, above everything else */
    backdrop-filter: blur(5px);  /* Slight blur effect */
    transition: opacity 0.3s ease;  /* Smooth fade */
}

/* Active state for modal backdrop */
.modal-backdrop.active {
    display: block;  /* Show when active */
}

/* ==========================================================================
   MODERN FOOTER STYLES - Stunning Figma-inspired design
   ========================================================================== */

.modern-footer {
    position: relative;
    background: linear-gradient(135deg, #0F1419 0%, #1F2A44 50%, #2D3748 100%);
    color: #FFFFFF;
    padding: 80px 0 0;
    overflow: hidden;
}

/* Footer Background Elements */
.footer-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.footer-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 25%,
        rgba(236, 72, 153, 0.1) 50%,
        rgba(251, 146, 60, 0.1) 75%,
        rgba(34, 197, 94, 0.1) 100%
    );
    opacity: 0.3;
}

.footer-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    filter: blur(40px);
    animation: footerFloat 20s ease-in-out infinite;
}

.footer-floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.footer-floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: -7s;
}

.footer-floating-shape.shape-3 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes footerFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* Footer Main Content */
.footer-main {
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* Footer Brand Section */
.footer-brand {
    animation: slideInLeft 1s ease-out;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.footer-logo h3 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #CBD5E1;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* Footer Sections */
.footer-section {
    animation: slideInUp 1s ease-out;
}

.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.4s; }
.footer-section:nth-child(4) { animation-delay: 0.6s; }

.footer-section-title {
    display: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #F1F5F9;
}

.footer-section-title i {
    color: #3B82F6;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.footer-links li:nth-child(1) { animation-delay: 0.8s; }
.footer-links li:nth-child(2) { animation-delay: 0.9s; }
.footer-links li:nth-child(3) { animation-delay: 1.0s; }
.footer-links li:nth-child(4) { animation-delay: 1.1s; }
.footer-links li:nth-child(5) { animation-delay: 1.2s; }
.footer-links li:nth-child(6) { animation-delay: 1.3s; }

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-links a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #3B82F6;
    padding-left: 25px;
}

.footer-links a:hover:before {
    width: 12px;
    height: 2px;
    border-radius: 1px;
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInRight 0.6s ease forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.8s; }
.contact-item:nth-child(2) { animation-delay: 1.0s; }
.contact-item:nth-child(3) { animation-delay: 1.2s; }

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B82F6;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-info a {
    color: #F1F5F9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #3B82F6;
}

/* Footer CTA Button */
.footer-cta {
    margin-top: 20px;
}

.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: bounceIn 0.8s ease forwards;
    animation-delay: 1.4s;
}

.footer-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.footer-cta-button:hover .btn-glow {
    transform: translateX(100%);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.6s;
}

.footer-copyright p {
    color: #94A3B8;
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 14px;
}

.footer-tagline i {
    color: #EF4444;
    animation: heartbeat 2s ease-in-out infinite;
}

.footer-credit {
    font-size: 14px;
    margin-top: 8px;
}

.footer-credit .studio-link {
    color: #3B82F6;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.footer-credit .studio-link:hover {
    color: #60A5FA;
}

.footer-credit .studio-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transition: width 0.3s ease;
}

.footer-credit .studio-link:hover::after {
    width: 100%;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-badges {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: slideInRight 1s ease forwards;
    animation-delay: 1.8s;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    color: #CBD5E1;
    backdrop-filter: blur(10px);
}

.badge-item i {
    color: #3B82F6;
    font-size: 12px;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-credit {
        text-align: center;
        margin-top: 10px;
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-floating-shape.shape-1,
    .footer-floating-shape.shape-2,
    .footer-floating-shape.shape-3 {
        display: none;
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Media Queries - Mobile specific styles
   ========================================================================== */
@media (max-width: 768px) {
    /* Mobile navigation layout */
    .navbar .container {
        position: relative;
        justify-content: center; /* Center the logo on mobile */
    }
    
    .logo {
        margin: 0 auto; /* Center the logo */
        font-size: 2rem; /* Make it slightly bigger on mobile */
    }

    .nav-toggle {
        display: block; /* Show hamburger on mobile */
        position: absolute; /* Position it absolutely */
        top: 50%; /* Center vertically */
        right: 20px;
        transform: translateY(-50%); /* Perfect vertical centering */
    }

    .nav-close {
        display: none;
        position: fixed;
        top: 10px;
        right: 20px;
        font-size: 1.5rem;
        color: #1F2A44;
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.3s ease;
    }

    .nav-close.active {
        display: block;
        animation: rotate 0.5s ease forwards;
    }

    .nav-menu {
        display: block; /* Hide horizontal menu */
        position: fixed;
        top: 0;
        right: -100%;
        height: 55vh;
        width: 280px;
        background: #FFFFFF;
        flex-direction: column;
        padding: 60px 20px;
        box-shadow: -8px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(226, 232, 240, 0.8);
    }

    .nav-menu.active {
        display: flex; /* Change from 'display: none' to 'display: flex' when active */
        right: 0;
    }

    .nav-menu li {
        margin: 5px 0;
        padding: 12px 15px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }
    
    .nav-menu li:hover {
        background: rgba(59, 130, 246, 0.1);
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
    }
    
    .nav-menu a::before {
        content: '';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-right: 12px;
        font-size: 1.2rem;
        color: #3B82F6;
        width: 20px;
        text-align: center;
    }
    
    .nav-menu li:nth-child(1) a::before { content: '\f015'; } /* Dashboard - home */
    .nav-menu li:nth-child(2) a::before { content: '\f1b2'; } /* Stack - cubes */
    .nav-menu li:nth-child(3) a::before { content: '\f0eb'; } /* Solution - lightbulb */
    .nav-menu li:nth-child(4) a::before { content: '\f135'; } /* Deployment - rocket */
    .nav-menu li:nth-child(5) a::before { content: '\f544'; } /* AI - robot */
    .nav-menu li:nth-child(6) a::before { content: '\f15b'; } /* Project - document */
    
    .hero {
        min-height: var(--hero-min-height);
        padding: var(--hero-mobile-padding);
    }
    
    .hero h1 {
        font-size: var(--hero-mobile-title-size);
        line-height: 1.2;
    }
    
    .hero h1 .highlight-text {
        font-size: var(--hero-mobile-highlight-size);
    }

    .subtitle {
        font-size: var(--hero-mobile-subtitle-size);
        max-width: var(--hero-mobile-subtitle-width);
        margin-bottom: var(--hero-mobile-subtitle-margin);
    }
    
    .cta-button {
        font-size: var(--hero-mobile-cta-size);
        padding: var(--hero-mobile-cta-padding);
    }
}

/* Mobile breakpoint (480px and below) */
@media (max-width: 480px) {
    .hero {
        min-height: var(--hero-min-height);
        padding: var(--hero-small-mobile-padding);
    }
    
    .hero h1 {
        font-size: 3.2rem;
        line-height: 1.2;
    }
    
    .hero h1 .highlight-text {
        font-size: var(--hero-small-mobile-highlight-size);
    }
    
    .subtitle {
        font-size: var(--hero-small-mobile-subtitle-size);
        max-width: var(--hero-small-mobile-subtitle-width);
    }
    
    .cta-button {
        font-size: 1.6rem;
        padding: var(--hero-small-mobile-cta-padding);
    }
    
    /* Maintain 3×7 grid but with minimal spacing */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);  /* Mobile: 3 columns */
        grid-template-rows: repeat(7, 1fr);     /* Mobile: 7 rows */
        gap: 8px;                              /* Minimal gap */
    }
    
    /* Compact service cards for small screens */
    .service-card {
        padding: 12px;          /* Minimal padding */
        min-height: 100px;      /* Smaller height */
    }
    
    /* Minimal icon size */
    .service-icon {
        width: 35px;           /* Small icon */
        height: 35px;
        margin-bottom: 8px;    /* Less margin */
    }
    
    /* Smallest icon font */
    .service-icon i {
        font-size: 0.9rem;     /* Small icon */
    }
    
    /* Minimal card heading */
    .service-card h3 {
        font-size: 0.75rem;    /* Small text */
        margin-bottom: 2px;    /* Minimal margin */
    }
    
    /* Minimal description text */
    .service-card p {
        font-size: 0.65rem;    /* Smallest text */
    }
}

/* Stack section - Modern styling with glass morphism and enhanced layout */
#stack {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

#stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

#stack .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 40px;
}

#stack .section-title {
    line-height: 1.5; /* Added line spacing for better readability */
    order: 1;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    position: relative;
}

#stack .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 2px;
}

.stack-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
    order: 2;
}

.about-image-container {
    position: relative;
}

.about-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image:hover::before {
    opacity: 1;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    
    height: 60px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2A44;
    margin-bottom: 16px;
    position: relative;
}

.feature-card p {
    color: #64748B;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.feature-stats {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(165, 180, 252, 0.05) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    min-width: 90px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
    animation: shimmer 2s infinite;
    animation-delay: 0.5s;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #3B82F6;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.stat-number.counting {
    animation: countUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    text-align: center;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tech-badge {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748B;
    font-size: 0.9rem;
}

.highlight-item i {
    color: #10B981;
    font-size: 1rem;
}

/* Mobile responsive - modern grid approach */
@media (max-width: 768px) {
    #stack {
        margin: 10px;
        border-radius: 16px;
    }
    
    #stack .container {
        padding: 0px 0px;
        gap: 0px;
    }
    
    #stack .section-title {
        font-size: 2.5rem;
    }
    
    .stack-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        height: 250px;
        justify-self: center;
        max-width: 300px;
    }
    
    .feature-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-stats {
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }
    
    .stat {
        min-width: 80px;
        padding: 12px 10px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .tech-badges {
        justify-content: center;
    }
}

/* ==========================================================================
   ANIMATION KEYFRAMES - Core animation definitions used throughout the site
   ========================================================================== */

/* Slide-in animation - Used for navigation items sliding in from right */
@keyframes slideIn {
    from {
        opacity: 0;                 /* Start transparent */
        transform: translateX(20px); /* Start offset to right */
    }
    to {
        opacity: 1;                 /* End fully visible */
        transform: translateX(0);    /* End at natural position */
    }
}

/* Fade-in with upward movement - Used for sections and cards appearing on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;                 /* Start transparent */
        transform: translateY(20px); /* Start offset downward */
    }
    to {
        opacity: 1;                 /* End fully visible */
        transform: translateY(0);    /* End at natural position */
    }
}

/* Simple fade-in animation - Used for subtle elements that need to appear */
@keyframes fadeIn {
    from {
        opacity: 0;  /* Start transparent */
    }
    to {
        opacity: 1;  /* End fully visible */
    }
}

/* Scale-in animation - Used for elements that grow into view */
@keyframes scaleIn {
    from {
        opacity: 0;             /* Start transparent */
        transform: scale(0.8);  /* Start smaller */
    }
    to {
        opacity: 1;             /* End fully visible */
        transform: scale(1);    /* End at full size */
    }
}

/* Rotation animation - Used for interactive elements like close buttons */
@keyframes rotate {
    from {
        transform: rotate(0deg);   /* Start position */
    }
    to {
        transform: rotate(90deg);  /* End position (quarter turn) */
    }
}

/* ==========================================================================
   MODERN PORTFOLIO SECTION - Stunning project showcase
   ========================================================================== */

.modern-portfolio {
    position: relative;
    background: linear-gradient(135deg, #0F1419 0%, #1A1F2E 50%, #252B3A 100%);
    padding: 100px 0;
    overflow: hidden;
}

/* Portfolio Background Elements */
.portfolio-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.portfolio-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(147, 51, 234, 0.1) 35%,
        rgba(236, 72, 153, 0.1) 70%,
        transparent 100%
    );
    opacity: 0.6;
}

.portfolio-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.15), rgba(147, 51, 234, 0.15));
    filter: blur(60px);
    animation: portfolioFloat 25s ease-in-out infinite;
}

.portfolio-floating-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.portfolio-floating-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: -8s;
}

.portfolio-floating-shape.shape-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: -16s;
}

@keyframes portfolioFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    25% { transform: translateY(-40px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(0px) rotate(180deg) scale(0.9); }
    75% { transform: translateY(40px) rotate(270deg) scale(1.1); }
}

/* Portfolio Header */
.portfolio-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.portfolio-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.portfolio-subtitle {
    font-size: 1.3rem;
    color: #CBD5E1;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

/* Portfolio Stats with Counting Animation */
.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.4s;
    margin: 60px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(165, 180, 252, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 200px;
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #3B82F6;
    display: block;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
    /* Counter animation will be handled by JavaScript */
    counter-reset: stat-counter;
}

.stat-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
    animation-delay: 1s;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    margin-top: 8px;
}

.stat-label::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 1px;
}

/* Counting Animation Keyframes */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animated counting numbers */
.stat-number.counting {
    animation: countUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Pulse animation for active counting */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-number.counting {
    animation: countUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards, pulse 0.6s ease-in-out 3;
}

/* Modern Portfolio Grid */
.modern-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.modern-portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.modern-portfolio-card:nth-child(1) { animation-delay: 0.6s; }
.modern-portfolio-card:nth-child(2) { animation-delay: 0.8s; }
.modern-portfolio-card:nth-child(3) { animation-delay: 1.0s; }
.modern-portfolio-card:nth-child(4) { animation-delay: 1.2s; }

.modern-portfolio-card:hover {
    transform: translateY(-15px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
}

/* Portfolio Card Image */
.portfolio-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.8) 0%,
        rgba(147, 51, 234, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.modern-portfolio-card:hover .image-overlay {
    opacity: 1;
}

.project-badges {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tech {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.badge-status {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    animation: pulse 2s infinite;
}

/* Portfolio Card Content */
.portfolio-card-content {
    padding: 30px;
}

.project-category {
    font-size: 0.8rem;
    color: #3B82F6;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.portfolio-card-content h3 {
    font-size: 1.5rem;
    color: #F1F5F9;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.portfolio-card-content p {
    color: #CBD5E1;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Project Features */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #93C5FD;
    font-weight: 500;
}

.feature-tag i {
    font-size: 0.7rem;
    color: #3B82F6;
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Portfolio CTA Section */
.portfolio-cta {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.6s;
}

.cta-content h3 {
    font-size: 2.2rem;
    color: #F1F5F9;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #CBD5E1;
    margin-bottom: 30px;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
}

.cta-button-large .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.cta-button-large:hover .btn-glow {
    transform: translateX(100%);
}

/* Footer Tagline and Studio Link */
.footer-tagline {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #94A3B8;
    font-style: italic;
}

.studio-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.studio-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    transition: width 0.3s ease;
}

.studio-link:hover {
    color: #93C5FD;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-portfolio {
        padding: 10px 0;
    }
    
    .portfolio-title {
        font-size: 2.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .portfolio-stats {
        flex-direction: column;
        gap: 20px;
        margin: 40px 0;
        padding: 30px 15px;
    }
    
    .stat-item {
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
    
    .modern-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .portfolio-floating-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .portfolio-card-content {
        padding: 20px;
    }
    
    .project-features {
        flex-direction: column;
    }
    
    .feature-tag {
        justify-content: center;
    }
    
    .portfolio-stats {
        margin: 30px 0;
        padding: 25px 10px;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 0.6px;
    }
    
    .stat-label::before {
        width: 25px;
    }
}

/* ==========================================================================
   PROJECT DETAILS MODAL - Enhanced modal for project information
   ========================================================================== */

.project-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-details-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-details-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.project-details-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.project-details-modal.active .project-details-content {
    transform: scale(1);
}

.project-details-content .modal-header {
    padding: 30px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-details-content .modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.project-details-content .modal-body {
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
    color: #E5E7EB;
}

.project-details-content .modal-body h3 {
    color: #3B82F6;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
}

.project-details-content .modal-body h3:first-child {
    margin-top: 0;
}

.project-overview p {
    line-height: 1.7;
    font-size: 1.05rem;
    color: #D1D5DB;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #93C5FD;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #10B981;
    margin-top: 2px;
    flex-shrink: 0;
}

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    font-size: 0.95rem;
}

.info-item strong {
    color: #F3F4F6;
    display: block;
    margin-bottom: 5px;
}

.status-live {
    color: #10B981;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-visit-site, .btn-close {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-visit-site {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
}

.btn-visit-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    color: #D1D5DB;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .project-details-content {
        width: 95%;
        margin: 20px;
    }
    
    .project-details-content .modal-header {
        padding: 20px;
    }
    
    .project-details-content .modal-header h2 {
        font-size: 1.4rem;
    }
    
    .project-details-content .modal-body {
        padding: 20px;
    }
    
    .project-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .tech-tags {
        flex-direction: column;
    }
}

/* ==========================================================================
   SUBMISSION MODAL STYLES
   ========================================================================== */

.submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.submission-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    z-index: 10001;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-content {
    background: white;
    border-radius: 16px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.modal-icon.loading {
    background: rgba(255, 255, 255, 0.2);
}

.modal-icon.success {
    background: #10B981;
}

.modal-icon.error {
    background: #EF4444;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
}

.modal-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive styles for submission modal */
@media (max-width: 768px) {
    .modal-content {
        min-width: 320px;
        max-width: 90vw;
        margin: 20px;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ==========================================================================
   FLOATING WHATSAPP ICON
   ========================================================================== */

/* Floating WhatsApp button - Fixed position for easy contact access */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #25D366 0%, #075E54 100%);
}

.whatsapp-float i {
    color: white;
    font-size: 38px;
    transition: all 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Pulse animation for attention */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
    }
}

/* ==========================================================================
   MODERN PROJECT SECTION - "Let's Create Something Amazing"
   ========================================================================== */

.project-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    min-height: 100vh;
}

/* Background Elements */
.project-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.animated-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    animation: floatAnimation 20s infinite linear;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 25%;
    animation-delay: -14s;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Container Styling */
.project-section .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.project-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #ffd700;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    100% { text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.6); }
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* Hero Visual Elements */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: orbitFloat 10s infinite linear;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.tech-icon:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tech-icon:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.tech-icon:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tech-icon:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@keyframes orbitFloat {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg) translateX(120px) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* Main Grid Layout */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Left Column - Info Section */
.project-info-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.modern-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.modern-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.modern-card:hover::before {
    left: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    animation: iconBounce 4s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.card-content h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-metric {
    flex-direction: column;
    align-items: flex-start;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 550%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-card:hover .card-glow {
    opacity: 1;
}

/* Process Section */
.process-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
}

.process-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.step-item.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.step-info h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Right Column - Form Section */
.project-form-section {
    position: sticky;
    top: 100px;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-header p {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 20px;
}

.form-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Form Styling */
.modern-project-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group,
.select-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group.full-width,
.select-group.full-width,
.textarea-group {
    grid-column: 1 / -1;
}

.input-group input,
.input-group textarea,
.select-group select {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

/* Ensure placeholder is visible when needed */
.input-group input::placeholder,
.input-group textarea::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #a0aec0;
}

/* Show placeholder when input is focused and has no value */
.input-group input:focus::placeholder,
.input-group textarea:focus::placeholder {
    opacity: 0.7;
    color: #9ca3af;
}

/* Always show placeholder for inputs when focused */
.input-group input:focus:placeholder-shown::placeholder,
.input-group textarea:focus:placeholder-shown::placeholder {
    opacity: 0.7;
}

.input-group input:focus,
.input-group textarea:focus,
.select-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.input-group label,
.select-group label {
    position: absolute;
    left: 50px;
    top: 4px;
    font-weight: 600;
    color: #718096;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: white;
    padding: 0 8px;
    z-index: 10;
    transform-origin: left center;
    /* Make sure labels are hidden when inputs have content */
    opacity: 1;
}

/* Hide labels when input is focused OR has content */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group textarea:valid + label,
.select-group select:focus + label,
.select-group select:not([value=""]) + label,
.select-group select.has-value + label {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.8) !important;
    pointer-events: none !important;
}

/* Ensure labels are completely hidden when input has any content */
.input-group input[value]:not([value=""]) + label,
.input-group textarea[value]:not([value=""]) + label {
    opacity: 0 !important;
    visibility: hidden !important;
}

.input-group i,
.select-group i {
    position: absolute;
    left: 18px;
    top: 16px;
    color: #000000;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input:focus ~ i,
.input-group textarea:focus ~ i,
.select-group select:focus ~ i {
    color: #667eea;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
    padding-top: 20px;
}

/* Additional label positioning for textarea */
.textarea-group label {
    top: 22px !important;
}

.textarea-group textarea:focus + label,
.textarea-group textarea:not(:placeholder-shown) + label,
.textarea-group textarea:valid + label {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.8);
}

.select-group select {
    cursor: pointer;
    appearance: none;
}

.select-group optgroup {
    font-weight: bold;
    color: #4a5568;
    background: #f7fafc;
    padding: 8px 0;
}

.select-group option {
    font-weight: normal;
    color: #2d3748;
    padding: 8px 12px;
}

.select-group i {
    right: 305px;
    left: auto;
    pointer-events: none;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-ripple {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Form Footer */
.form-footer {
    margin-top: 30px;
    text-align: center;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.security-note i {
    color: #10b981;
}

.contact-alternatives p {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .project-hero {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .project-grid {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .project-section {
        padding: 80px 0;
    }
    
    .project-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .project-form-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-section {
        padding: 60px 0;
    }
    
    .project-section .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .floating-elements {
        width: 200px;
        height: 200px;
    }
    
    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modern-card {
        padding: 24px;
    }
    
    .form-container {
        padding: 30px 24px;
    }
    
    .form-header h3 {
        font-size: 1.6rem;
    }
    
    .form-badges {
        gap: 12px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .process-section {
        padding: 30px 20px;
    }
    
    .step-item {
        padding: 16px;
        gap: 16px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .animated-shapes .shape {
        display: none;
    }
    
    .gradient-text {
        background: none;
        -webkit-text-fill-color: #ffd700;
        color: #ffd700;
        animation: none;
    }
    
    .modern-card {
        padding: 20px;
    }
    
    .card-icon {
        width: 500px;
        height: 50px;
        font-size: 1.2rem;
        animation: none;
    }
    
    .form-container {
        padding: 24px 20px;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.4rem;
    }
    
    .input-group input,
    .input-group textarea,
    .select-group select {
        padding: 14px 16px 14px 45px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .contact-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-link {
        justify-content: center;
        padding: 12px 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .project-section {
        background: #000;
    }
    
    .hero-title,
    .hero-description {
        color: #fff;
        text-shadow: none;
    }
    
    .modern-card {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .submit-btn {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-badge i,
    .card-icon,
    .shape,
    .tech-icon {
        animation: none;
    }
    
    .modern-card::before,
    .card-glow {
        display: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   Favicon & Browser Integration Enhancements
   ========================================================================== */

/* Browser tab styling to match brand */
html {
    /* Dynamic favicon support for better brand consistency */
    --favicon-primary: #667eea;
    --favicon-secondary: #764ba2;
}

/* Enhanced PWA styling for better mobile experience */
@media (display-mode: standalone) {
    body {
        padding-top: 0;
        /* Remove extra padding when app is installed */
    }
    
    .navbar {
        /* Adjust navbar for PWA mode */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 2px 20px rgba(102, 126, 234, 0.1);
    }
}

/* Dark mode favicon support */
@media (prefers-color-scheme: dark) {
    :root {
        --favicon-primary: #764ba2;
        --favicon-secondary: #667eea;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .logo {
        background: linear-gradient(135deg, #4a5cb8 0%, #5a3d7a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Browser UI integration enhancements */
body {
    /* Ensure consistent experience across all browsers */
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Clickable elements should allow selection */
input, textarea, [contenteditable="true"], .selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Enhanced mobile browser chrome integration */
@supports (-webkit-appearance: none) {
    /* Safari-specific enhancements */
    .navbar {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

@supports (backdrop-filter: blur(20px)) {
    /* Modern browser backdrop filter support */
    .navbar {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
    }
}

/* ==========================================================================
   SEO & Rich Snippets Enhancement Styles
   ========================================================================== */

/* Schema.org structured data visual enhancements */
.schema-organization,
.schema-service,
.schema-review {
    /* Hidden but available for screen readers and crawlers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Breadcrumb schema enhancement */
.breadcrumb-schema {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-schema a {
    color: #667eea;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb-schema a:hover {
    text-decoration: underline;
}

/* Review schema stars */
.review-stars {
    color: #ffc107;
    font-size: 18px;
    margin: 5px 0;
}

.review-stars .star-filled::before {
    content: "★";
}

.review-stars .star-empty::before {
    content: "☆";
}

/* Contact information schema styling */
.contact-schema {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.contact-schema h3 {
    margin-bottom: 15px;
    color: white;
}

.contact-schema .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-schema .contact-item i {
    margin-right: 10px;
    width: 20px;
}

/* Service schema pricing display */
.service-pricing {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 15px 0;
}

.service-pricing .price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.service-pricing .currency {
    font-size: 18px;
    color: #666;
}