/* style.css - VISUAL OVERHAUL - Refined Edition */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Core colors - refined modern palette */
    --primary: #2563eb; /* Refined blue */
    --primary-dark: #1e40af; /* Darker, higher contrast blue */
    --primary-light: #60a5fa; /* Lighter blue */
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); /* Elegant gradient */
    --secondary: #7c3aed; /* Rich purple */
    --secondary-light: #a78bfa; /* Lighter purple */
    --secondary-dark: #5b21b6; /* Darker purple */
    --dark: #0f172a; /* Deep navy blue/black */
    --light: #f8fafc; /* Off-white */
    --gray: #64748b;  /* Medium Gray with blue undertone */
    --gray-light: #e2e8f0; /* Lighter for better contrast */
    --gray-lighter: #f1f5f9; /* Very light gray */
    --text: #1e293b; /* Dark text for contrast */
    --white: #ffffff;
    --success: #10b981; /* Emerald */
    --error: #ef4444;   /* Red */
    --warning: #f59e0b; /* Amber */
    --info: #3b82f6;    /* Blue */
    
    /* Enhanced shadow and animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 5px 15px rgba(37, 99, 235, 0.35); /* Refined glowing shadow for interactive elements */
    
    /* Navigation heights */
    --nav-height-mobile: 70px;
    --nav-height: 80px;
    
    /* RGB values for opacity operations */
    --rgb-primary: 37, 99, 235;
    --rgb-secondary: 124, 58, 237;
    
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Portfolio specific variables */
    --portfolio-item-gap: 20px;
    --portfolio-overlay-bg: rgba(15, 23, 42, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16.5px;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

.container {
    width: 100%;
    max-width: 1280px; /* Wider max container */
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0; /* Increased section padding */
    position: relative;
    overflow: hidden; /* Prevent content overflow issues */
}

/* Headings with more character */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
}
h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    letter-spacing: -0.03em;
} 
h2 { 
    font-size: 2.75rem; 
    position: relative;
}
h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-top: 0.5rem;
}
h3 { 
    font-size: 2rem; 
    color: var(--primary-dark);
}
h4 { 
    font-size: 1.5rem; 
    font-weight: 600;
}

/* Links */
a {
    color: var(--primary);
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none; /* Remove default underline */
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline; /* Underline on hover */
}
.nav-links a, footer a, .logo a, .btn-primary, .btn-secondary, .btn-client, .btn-admin, .btn-view, .table-actions a {
    text-decoration: none !important; /* Ensure no underline */
    color: inherit;
}
.nav-links a:hover, footer a:hover {
    color: var(--primary-light); /* Lighter hover for dark backgrounds */
    text-decoration: none !important;
}
.nav-links a:hover::after { width: 100%; }


img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============== Buttons =============== */
.btn-primary, .btn-secondary, .btn-client, .btn-view, .btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.875rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none !important;
}

.btn-primary:focus, .btn-secondary:focus, .btn-client:focus, .btn-view:focus, .btn-admin:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--rgb-primary), 0.25);
}

/* Enhanced Primary Button with gradient and glow */
.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.35s ease;
    border-radius: 6px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(var(--rgb-primary), 0.45);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px -3px rgba(var(--rgb-primary), 0.4);
}

/* Enhanced Secondary Button with better hover */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-weight: 500;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dark background variation */
.btn-secondary.dark-bg {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary.dark-bg::before {
    background: var(--white);
}

.btn-secondary.dark-bg:hover {
    color: var(--primary-dark);
    border-color: var(--white);
}

/* Client Button - Refined pill-shaped button */
.btn-client {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-glow);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    font-weight: 500;
    padding: 0.85rem 2.2rem;
}

.btn-client::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

nav .btn-client, nav.scrolled .btn-client { 
    color: var(--white) !important; 
}

.btn-client:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px rgba(var(--rgb-secondary), 0.5);
    color: var(--white) !important;
}

.btn-client:hover::before {
    opacity: 1;
}

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

/* View Button - Clean, subtle style */
.btn-view {
    background: var(--gray-lighter);
    color: var(--text);
    border: 1px solid var(--gray-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    padding: 0.65rem 1.35rem;
    transition: all 0.25s ease;
    border-radius: 6px;
}

.btn-view:hover {
    background: var(--white);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Admin Button - Warning colors with improved design */
.btn-admin {
    background: linear-gradient(135deg, var(--warning) 0%, #f97316 80%);
    color: var(--dark);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 500;
}

.btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f97316 20%, var(--warning) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.btn-admin:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-admin:hover::before {
    opacity: 1;
}


/* =============== Form Elements =============== */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
    display: block;
    transition: color 0.3s ease;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--gray);
    opacity: 0.8;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--rgb-primary), 0.15);
    background-color: var(--white);
}

.form-group:focus-within label {
    color: var(--primary);
}

.form-group textarea { 
    min-height: 150px; 
    resize: vertical;
    line-height: 1.6;
}

.error {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    animation: error-shake 0.4s ease-in-out;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =============== Alerts (with icons) =============== */
.alert { /* Base */
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left-width: 4px;
    border-left-style: solid;
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.95rem;
}
.alert::before { /* Icon */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    font-size: 1.1rem; line-height: 1.6; flex-shrink: 0;
}
.alert-success { background: #ecfdf5; color: #065f46; border-left-color: var(--success); }
.alert-success::before { content: '\f058'; color: var(--success); }
.alert-error { background: #fef2f2; color: #991b1b; border-left-color: var(--error); }
.alert-error::before { content: '\f06a'; color: var(--error); }
.alert-warning { background: #fffbeb; color: #92400e; border-left-color: var(--warning); }
.alert-warning::before { content: '\f071'; color: var(--warning); }
.alert-info { background: #eff6ff; color: #1e40af; border-left-color: var(--info); }
.alert-info::before { content: '\f05a'; color: var(--info); }


/* =============== Loader =============== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-mountain {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    stroke: var(--primary);
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: mountain-draw 1.5s ease forwards;
}

@keyframes mountain-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.loader-text {
    color: var(--light);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 1s ease 0.5s forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* =============== Navigation =============== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 2rem;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.92); /* Using var(--dark) color with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    height: var(--nav-height-mobile);
}

.nav-container {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
}

.logo-text::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 3px;
    background: var(--primary-gradient);
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.logo:hover .logo-text::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    margin-left: 2.5rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    opacity: 0.9;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    opacity: 1;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links .btn-client {
    margin-left: 3.5rem;
}

/* Improved Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1002; /* Higher z-index to ensure it's always clickable */
    position: relative;
    margin-left: auto; /* Ensure it's properly aligned to the right */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px; /* Thinner lines for more modern look */
    background: var(--white);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Enhanced menu toggle animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    width: 80%;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    width: 80%;
}

/* Mobile Navigation Enhancement */
@media (max-width: 768px) {
    nav {
        height: var(--nav-height-mobile);
        padding: 0 1.5rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0; /* Ensure full width coverage */
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
        padding: var(--nav-height-mobile) 2rem 2rem 2rem;
        z-index: 1001;
        overflow-y: auto;
        visibility: hidden; /* Hide until active */
    }
    
    .nav-links.active {
        transform: translateX(0);
        visibility: visible; /* Show when active */
    }
    
    .nav-links a {
        color: var(--white);
        font-size: 1.5rem;
        margin: 1.25rem 0;
        padding: 0.5rem;
        display: block;
        text-align: center;
        width: 100%;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease, color 0.3s ease;
    }
    
    .nav-links.active a {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links .btn-client {
        margin-top: 2.5rem;
        margin-left: 0;
        width: auto;
        max-width: 250px;
        padding: 0.85rem 2.2rem;
        font-size: 0.95rem;
        display: inline-block;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.4s ease 0.5s, opacity 0.4s ease 0.5s, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    }
    
    .nav-links.active .btn-client {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =============== Hero Section =============== */
.hero {
    min-height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    position: relative; 
    overflow: hidden;
    background: linear-gradient(170deg, var(--dark) 0%, #070b18 100%);
    color: var(--white);
    padding-top: var(--nav-height);
}

/* Enhanced animated background overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(var(--rgb-primary), 0.12) 0%, transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(var(--rgb-secondary), 0.12) 0%, transparent 55%);
    opacity: 0.9;
    animation: pulse-bg 10s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.hero-wrapper {
    z-index: 2;
    position: relative;
    max-width: 950px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--white);
    text-shadow: 0 5px 30px rgba(0,0,0,0.3);
    line-height: 1.15;
}

.bold-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.bold-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.12em;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    border-radius: 4px;
    opacity: 0.4;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 3.75rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto; 
    margin-right: auto;
    line-height: 1.6;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.hero-buttons .btn-primary { 
    padding: 1.1rem 2.75rem; 
    font-size: 0.95rem; 
}

.hero-buttons .btn-secondary.dark-bg { 
    padding: calc(1.1rem - 2px) calc(2.75rem - 2px); 
    font-size: 0.95rem; 
}

/* Enhanced Star Canvas */
.star-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.85;
}

/* Advanced meteor effects */
.meteor-1, .meteor-2, .meteor-3, .meteor-4, .meteor-5 {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0));
    border-radius: 50%;
    filter: blur(1px);
    animation: meteor-fall 6s cubic-bezier(0.43, 0.13, 0.23, 0.96) infinite;
    z-index: 1;
    transform: rotate(35deg);
    opacity: 0;
}

.meteor-1 { top: -15%; left: 25%; animation-delay: 0s; }
.meteor-2 { top: -15%; left: 55%; animation-delay: 3s; }
.meteor-3 { top: -15%; left: 38%; animation-delay: 5.5s; }
.meteor-4 { top: -15%; left: 80%; animation-delay: 7s; }
.meteor-5 { top: -15%; left: 12%; animation-delay: 9.5s; }

@keyframes meteor-fall {
    0% { transform: translate(0, 0) rotate(35deg); opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    60% { opacity: 0.3; }
    100% { transform: translate(600px, 600px) rotate(35deg); opacity: 0; }
}

/* Modern text reveal animations with staggered timing */
.reveal-text,
.reveal-text-delay,
.reveal-text-delay-2 {
    opacity: 0;
    transform: translateY(40px);
    animation: text-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-text-delay { animation-delay: 0.4s; }
.reveal-text-delay-2 { animation-delay: 0.7s; }

@keyframes text-reveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle floating animation for hero elements */
.hero-wrapper {
    animation: float-subtle 9s ease-in-out infinite;
}

@keyframes float-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =============== Services Section =============== */
.services {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 7rem; /* Increased padding for better spacing */
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, var(--light), var(--white));
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 5rem;
    position: relative;
    text-align: center;
    color: var(--dark);
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.75rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

/* Enhanced Service Card with modern aesthetics */
.service-card {
    background: var(--white);
    padding: 3.25rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure consistent heights */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--rgb-primary), 0.03) 0%, rgba(var(--rgb-secondary), 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(var(--rgb-primary), 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 2.25rem auto;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(var(--rgb-primary), 0.3);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    box-shadow: 0 10px 25px rgba(var(--rgb-primary), 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.35rem;
    color: var(--text);
    transition: var(--transition);
    font-weight: 700;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.75;
    margin-top: auto; /* Push content to top, creating equal height cards */
    flex-grow: 1;
}

/* =============== Portfolio Section =============== */
.portfolio {
    background-color: var(--light);
    position: relative;
    padding: 7rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-filter {
    background: transparent;
    border: 2px solid var(--gray-light);
    color: var(--gray);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.portfolio-filter:hover, .portfolio-filter.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 280px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--portfolio-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

.portfolio-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Portfolio Modal Styling */
.project-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-images {
    width: 100%;
}

.project-image-main {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.project-image-main img {
    width: 100%;
    height: auto;
}

.project-image-thumbnails {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.image-thumbnail.active, .image-thumbnail:hover {
    opacity: 1;
    border-color: var(--primary);
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: var(--gray-lighter);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.meta-item strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.meta-item span {
    color: var(--text);
    font-size: 1rem;
}

.project-description h4, .project-technologies h4, .project-results h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-testimonial {
    background: var(--gray-lighter);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
    margin: 2rem 0;
}

.project-testimonial blockquote {
    position: relative;
    padding-left: 2rem;
}

.project-testimonial i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.5;
}

.project-testimonial p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
}

.project-testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-dark);
}

.project-link {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .project-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============== Client Sites Section =============== */
.client-sites {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

.client-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.client-site-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 250px;
}

.client-site-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.site-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.site-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-site-item:hover .site-image img {
    transform: scale(1.1);
}

.site-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--portfolio-overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.client-site-item:hover .site-overlay {
    opacity: 1;
}

.site-content {
    text-align: center;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-site-item:hover .site-content {
    transform: translateY(0);
}

.site-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.site-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .client-sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .client-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* =============== Process Section =============== */
.process {
    background-color: var(--gray-lighter);
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-light));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.process-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-glow);
    left: 50%;
    transform: translateX(-50%);
}

.step-content {
    background: var(--gray-lighter);
    border-radius: 12px;
    padding: 2rem;
    width: calc(50% - 60px);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.process-step:nth-child(odd) .step-content {
    margin-right: 80px;
    margin-left: auto;
}

.process-step:nth-child(even) .step-content {
    margin-left: 80px;
    margin-right: auto;
}

.step-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-content p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

/* Arrow for step content */
.process-step:nth-child(odd) .step-content::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--gray-lighter);
    transform: translateY(-50%);
}

.process-step:nth-child(even) .step-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--gray-lighter);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        justify-content: flex-start;
    }
    
    .step-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .process-step:nth-child(odd) .step-content::before,
    .process-step:nth-child(even) .step-content::before {
        left: -15px;
        right: auto;
        border-right: 15px solid var(--gray-lighter);
        border-left: none;
    }
}

/* =============== Testimonials Section =============== */
.testimonials {
    background: linear-gradient(170deg, var(--light) 0%, var(--gray-lighter) 100%);
    padding: 7rem 0;
    position: relative;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fade-slide-in 0.5s ease forwards;
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-content {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-strong);
    position: relative;
}

.testimonial-quote {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.testimonial-quote i {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.3;
}

.testimonial-quote p {
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--gray-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* =============== About Section =============== */
.about {
    background: linear-gradient(170deg, var(--white) 0%, #f8fafc 100%);
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.about-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    animation: float-slow 20s ease-in-out infinite alternate;
}

.shape-2 {
    bottom: -15%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    animation: float-slow 15s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    top: 40%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: linear-gradient(225deg, var(--primary) 0%, var(--secondary-dark) 100%);
    animation: float-slow 25s ease-in-out infinite alternate;
}

@keyframes float-slow {
    0% { 
        transform: translate(0, 0) rotate(0deg);
    }
    100% { 
        transform: translate(50px, 25px) rotate(10deg);
    }
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* About Image Column */
.about-image-column {
    position: relative;
}

.about-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.about-image-frame {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    position: relative;
    border: 5px solid var(--white);
    z-index: 3;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-frame:hover .about-profile-img {
    transform: scale(1.05);
}

.tech-orbit {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.tech-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: orbit 20s linear infinite;
}

.tech-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.icon-1 { color: #E44D26; animation-delay: -0s; }      /* HTML5 */
.icon-2 { color: #264DE4; animation-delay: -2.5s; }    /* CSS3 */
.icon-3 { color: #F7DF1E; animation-delay: -5s; }      /* JavaScript */
.icon-4 { color: #61DAFB; animation-delay: -7.5s; }    /* React */
.icon-5 { color: #F05138; animation-delay: -10s; }     /* Swift */
.icon-6 { color: #68A063; animation-delay: -12.5s; }   /* Node.js */
.icon-7 { color: #777BB3; animation-delay: -15s; }     /* PHP */
.icon-8 { color: #21759B; animation-delay: -17.5s; }   /* WordPress */

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(170px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(170px) rotate(-360deg);
    }
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -15px;
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    z-index: 4;
    animation: pulse-badge 3s ease-in-out infinite;
}

.badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.years {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-heading);
}

.text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.25rem;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 20px rgba(var(--rgb-primary), 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 12px 25px rgba(var(--rgb-primary), 0.4);
    }
}

.about-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
}

.stat-item {
    flex: 1;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    background: var(--primary-gradient);
    color: var(--white);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

/* About Text Column */
.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-header {
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--dark);
    line-height: 1.2;
}

.about-subtitle-line {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.expertise-areas {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 1rem;
}

.expertise-area {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
}

.expertise-area:hover {
    background: rgba(var(--rgb-primary), 0.03);
    transform: translateX(5px);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.expertise-area:hover .expertise-icon {
    transform: rotateY(180deg);
}

.expertise-content h4 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.expertise-content p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.65;
}

.about-approach h4, .skills-section h4 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.approach-arrow, .skills-arrow {
    margin-left: 0.75rem;
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.about-approach:hover .approach-arrow, .skills-section:hover .skills-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.approach-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.approach-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(var(--rgb-primary), 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.approach-card:hover .approach-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: scale(1.1);
}

.approach-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.approach-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gray);
    transition: all 0.3s ease;
}

.approach-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--rgb-primary), 0.1);
    cursor: default;
}

.skill-pill:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.about-cta {
    margin-top: 1rem;
    text-align: center;
}

.btn-about-cta {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-glow);
}

/* Responsive adjustments for About section */
@media (max-width: 1100px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tech-orbit {
        width: 380px;
        height: 380px;
    }
    
    .about-subtitle {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-orbit {
        width: 340px;
        height: 340px;
    }
    
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(140px) rotate(0deg);
        }
        100% {
            transform: rotate(360deg) translateX(140px) rotate(-360deg);
        }
    }
    
    .expertise-area {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .expertise-content h4 {
        text-align: center;
    }
    
    .approach-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .tech-orbit {
        width: 300px;
        height: 300px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(120px) rotate(0deg);
        }
        100% {
            transform: rotate(360deg) translateX(120px) rotate(-360deg);
        }
    }
    
    .about-image-frame {
        width: 240px;
        height: 240px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .years {
        font-size: 2rem;
    }
    
    .text {
        font-size: 0.7rem;
    }
}

/* =============== CTA Section =============== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta h2::after {
    background: var(--white);
    margin: 1rem auto 0;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    font-size: 1rem;
    padding: 1.1rem 2.75rem;
}

.cta .btn-primary:hover {
    background: var(--light);
    color: var(--primary-dark);
}

.cta .btn-primary::before {
    background: var(--light);
}

/* =============== Contact Section =============== */
.contact {
    background: linear-gradient(170deg, var(--dark) 0%, #1f1b4d 100%);
    color: var(--gray-light);
    padding: 7rem 0 12rem 0; /* Increased top padding */
    position: relative;
    overflow: hidden;
}

/* Enhanced curve background */
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Increased curve height */
    background: var(--light);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(50%);
}

/* Animated background pattern */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(var(--rgb-primary), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(var(--rgb-secondary), 0.1) 0%, transparent 50%);
    opacity: 0.6;
}

.contact .section-title { 
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 4.5rem;
}

.contact .section-title::after { 
    background: var(--white);
    width: 60px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    padding-right: 2.5rem;
}

.contact-info h3, .contact-form h3 { 
    color: var(--white);
    margin-bottom: 2.25rem;
    position: relative;
    padding-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.contact-info h3::after, .contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.6rem;
    color: var(--primary-light);
    margin-right: 1.5rem;
    width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
    color: var(--secondary-light);
}

.contact-item span { 
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.contact-social { 
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
}

.contact-social a { 
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.7rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social a:hover { 
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-gradient);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

/* Form styles on dark bg */
.contact-form label { 
    color: var(--white);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
}

.contact-form input, .contact-form textarea, .contact-form select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.contact-form input::placeholder, .contact-form textarea::placeholder, .contact-form select { 
    color: rgba(255, 255, 255, 0.4);
}

.contact-form select option {
    background: var(--dark);
    color: var(--white);
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(var(--rgb-primary), 0.15);
    color: var(--white);
    outline: none;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 1.75rem;
    padding: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 1.75rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============== Footer =============== */
footer {
    background: var(--white);
    padding: 7rem 0 2rem 0;
    position: relative;
    margin-top: -160px;
    z-index: 1;
    color: var(--gray);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.03);
}

/* Refined subtle background pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--gray-light) 1px, transparent 1.5px),
        radial-gradient(var(--gray-light) 1px, transparent 1.5px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0.4;
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
    padding-top: 2rem;
}

.footer-logo {
    flex: 1 0 300px;
}

.footer-logo .logo-text { 
    color: var(--dark);
    font-size: 1.7rem;
    font-weight: 800;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-logo .logo-text::after {
    content: '';
    position: absolute;
    width: 35%;
    height: 3px;
    background: var(--primary-gradient);
    bottom: -8px;
    left: 0;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.footer-logo:hover .logo-text::after {
    width: 100%;
}

.footer-logo p { 
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    max-width: 350px;
}

.footer-links {
    display: flex;
    gap: 3rem;
    padding-top: 0.5rem;
}

.footer-links a { 
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-links a:hover { 
    color: var(--primary);
    text-decoration: none;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--gray-light);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

/* =============== Modals =============== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: auto;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--dark);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* =============== Policy Page Styles =============== */
.policy-section {
    padding: 8rem 0 6rem;
    background: var(--light);
}

.policy-section h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--dark);
    text-align: center;
}

.policy-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.policy-section h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.policy-section p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-section ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.contact-info-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info-list i {
    color: var(--primary);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

/* =============== Notification System =============== */
.notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    max-width: 380px;
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    border-left-width: 4px;
    border-left-style: solid;
}

.notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.notification.success { 
    border-left-color: var(--success);
    background-color: #f0fdf4;
}

.notification.error { 
    border-left-color: var(--error);
    background-color: #fef2f2;
}

.notification.warning { 
    border-left-color: var(--warning);
    background-color: #fffbeb;
}

.notification.info { 
    border-left-color: var(--info);
    background-color: #eff6ff;
}

.notification-content {
    flex: 1;
    padding-right: 1rem;
}

.notification-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--dark);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    margin-left: 0.5rem;
}

.notification-close:hover {
    color: var(--dark);
    transform: rotate(90deg);
}

/* =============== Mobile Adjustments Enhancements =============== */
@media (max-width: 992px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.7rem; }
    section { padding: 5rem 0; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        order: 1;
    }
    
    .parallax-container {
        order: 2;
        height: 450px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info { 
        padding-right: 0;
    }
    
    .contact-item i {
        font-size: 1.4rem;
    }
    
    .contact-social {
        justify-content: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Improved mobile styling */
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary.dark-bg {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    /* Mobile form elements */
    .form-group input, .form-group textarea, .form-group select {
        padding: 0.9rem 1rem;
    }
    
    /* Improved footer for mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-logo {
        flex: none;
        width: 100%;
    }
    
    .footer-logo .logo-text::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    /* Portfolio adjustments */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .portfolio-filter {
        margin-bottom: 0.5rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 10px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title { 
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Enhanced notifications for mobile */
    .notification {
        max-width: calc(100% - 30px);
        right: 15px;
        bottom: 15px;
        padding: 1rem 1.25rem;
    }
    
    /* Service cards on mobile */
    .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
        margin-bottom: 1.5rem;
    }
    
    /* Contact items on mobile */
    .contact-item {
        font-size: 1rem;
    }
    
    .contact-item i {
        margin-right: 1rem;
    }
    
    .contact-social a {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    /* Policy page adjustments */
    .policy-content {
        padding: 2rem 1.5rem;
    }
}

/* =============== Print Styles =============== */
@media print {
    body {
        color: #000;
        background: #fff;
    }
    
    nav, .hero, .services, .portfolio, .process, .testimonials, .cta, .contact, footer {
        display: none;
    }
    
    .policy-section {
        padding: 0;
    }
    
    .policy-content {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
}