/* ============================================
   EWEAVER WEBSITE STYLES
   Modern, responsive, blue-themed corporate site
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Colors */
    --primary-blue: #0f172a;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --secondary-gray: #64748b;
    --light-gray: #e2e8f0;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-dark: #1e293b;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #06b6d4 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 64, 175, 0.9) 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Container */
    --container-max-width: 1280px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.section-padding-small {
    padding: var(--spacing-md) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-gradient {
    background: var(--gradient-primary);
}

.text-white {
    color: var(--text-white);
}

.text-light {
    color: var(--text-light);
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.logo .accent {
    color: var(--accent-cyan);
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    z-index: 1001;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--accent-cyan);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   PAGE HERO (Internal Pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
    margin-top: 4rem;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.page-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    line-height: 1.6;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-cyan);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: var(--radius-md);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--secondary-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--accent-cyan);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--accent-blue);
}

/* ============================================
   FEATURES / WHY CHOOSE
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: var(--text-white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.portfolio-link:hover {
    background-color: var(--text-white);
    color: var(--primary-blue);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.portfolio-description {
    color: var(--secondary-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-cyan);
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--secondary-gray);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.bg-gradient .cta-title {
    color: var(--text-white);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    margin-bottom: 2rem;
}

.bg-gradient .cta-subtitle {
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--accent-cyan);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.footer-contact li i {
    width: 1.2rem;
    color: var(--accent-cyan);
    font-size: 1rem;
}

.footer-contact a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.our-story {
    background-color: var(--bg-white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.story-text p {
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: var(--radius-md);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--secondary-gray);
    line-height: 1.7;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-member {
    text-align: center;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-cyan);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--secondary-gray);
    line-height: 1.7;
}

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.location-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.location-details {
    margin-top: 2rem;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.location-detail i {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    width: 1.5rem;
}

.map-placeholder {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-weight: 600;
}

/* Philosophy Section */
.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-cyan);
}

.philosophy-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.philosophy-item p {
    color: var(--secondary-gray);
    line-height: 1.7;
}

/* ============================================
   SERVICES PAGE SPECIFIC
   ============================================ */
.services-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.services-nav-link {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.services-nav-link:hover {
    background-color: var(--accent-cyan);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-detail {
    scroll-margin-top: 5rem;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail-content.reverse {
    direction: ltr;
}

.service-detail-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: var(--radius-md);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.service-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-detail-description {
    font-size: 1.125rem;
    color: var(--secondary-gray);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-detail-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-detail-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-detail-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-gray);
    line-height: 1.7;
}

.service-detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.25rem;
}

.service-detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background-color: var(--light-gray);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.process-step {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.process-description {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO PAGE SPECIFIC
   ============================================ */
.portfolio-filters {
    background-color: var(--bg-light);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-cyan);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.portfolio-card-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.portfolio-card-full:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card-full.hidden {
    display: none;
}

.portfolio-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portfolio-industry,
.portfolio-year {
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-cyan);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form-container {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--secondary-gray);
}

.file-upload-label i {
    font-size: 1.2rem;
}

.file-upload-label:hover {
    border-color: var(--accent-cyan);
    background-color: rgba(6, 182, 212, 0.05);
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--accent-cyan);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    position: relative;
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-submit.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Message */
.form-message {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: none;
    text-align: center;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Contact Info Container */
.contact-info-container {
    background: var(--gradient-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    color: var(--text-white);
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    flex-shrink: 0;
    font-size: 1.2rem;
}

.contact-info-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.contact-info-value a {
    color: var(--text-white);
    transition: color var(--transition-fast);
}

.contact-info-value a:hover {
    color: var(--accent-cyan);
}

.contact-social {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links-large {
    display: flex;
    gap: 1rem;
}

.social-link-large {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-white);
    transition: all var(--transition-fast);
    font-size: 1.5rem;
}

.social-link-large:hover {
    background-color: var(--text-white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Map Section */
.map-section {
    margin-top: 0;
}

.map-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 100%;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    color: var(--text-white);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
}

.map-overlay-marker i {
    color: var(--accent-cyan);
    font-size: 2rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .story-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail-content.reverse {
        direction: rtl;
    }
    
    .service-detail-content.reverse > * {
        direction: ltr;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-card-full {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
    
    .portfolio-card-full:nth-child(even) {
        direction: rtl;
    }
    
    .portfolio-card-full:nth-child(even) > * {
        direction: ltr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --spacing-xl: 8rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .mobile-menu-overlay,
    .scroll-indicator,
    .cta-banner,
    .site-footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero,
    .page-hero {
        page-break-after: always;
    }
}

/* ============================================
   ENHANCED INTERACTIVE FEATURES
   ============================================ */

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(6, 182, 212, 0.1);
    border-width: 3px;
    mix-blend-mode: normal;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo .accent {
    color: var(--accent-cyan);
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-cyan);
    animation: load 2s ease-in-out forwards;
}

@keyframes load {
    0% { width: 0%; }
    20% { width: 30%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Magnetic Buttons */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.btn-magnetic span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 3D Tilt Cards */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s ease;
}

.tilt-card-content {
    transform: translateZ(20px);
}

/* Particle Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

/* Typing Effect */
.typed-text {
    display: inline-block;
    position: relative;
}

.typed-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    width: 1px;
    height: 100%;
    background-color: var(--accent-cyan);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border: 2px solid var(--bg-white);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-content {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-cyan);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--accent-cyan);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Process Interactive */
.process-interactive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.process-step-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.process-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.process-step-card.active {
    border-color: var(--accent-cyan);
}

.process-step-card.active::before {
    opacity: 0.1;
}

.process-step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.process-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.process-step-description {
    color: var(--secondary-gray);
    line-height: 1.6;
    position: relative;
    z-index: 2;
    display: none;
}

.process-step-card.active .process-step-description {
    display: block;
    animation: fadeIn 0.5s ease;
}

.process-detail-panel {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
}

.process-detail-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Form Enhancements */
.form-group {
    position: relative;
}

.validation-icon {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.validation-icon.valid {
    color: #10b981;
}

.validation-icon.invalid {
    color: #ef4444;
}

.character-counter {
    position: absolute;
    right: 1rem;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: var(--secondary-gray);
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.danger {
    color: #ef4444;
}

.file-upload-label.dragover {
    border-color: var(--accent-cyan);
    background-color: rgba(6, 182, 212, 0.1);
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-cyan);
}

.back-to-top i {
    color: var(--text-white);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

.progress-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 54px;
    height: 54px;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke: var(--accent-cyan);
    stroke-width: 3;
    fill: transparent;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    transition: stroke-dashoffset 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-white: #1e293b;
    --bg-light: #0f172a;
    --text-dark: #f1f5f9;
    --secondary-gray: #94a3b8;
    --light-gray: #334155;
}

body.dark-mode .timeline-content,
body.dark-mode .process-step-card,
body.dark-mode .service-card,
body.dark-mode .portfolio-card {
    background: var(--bg-light);
    color: var(--text-light);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.theme-toggle:hover i {
    color: var(--accent-cyan);
}

/* Random Project Button */
.random-project-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 98;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.random-project-btn:hover {
    transform: scale(1.1) rotate(180deg);
    background: var(--primary-blue);
}

.random-project-btn i {
    color: var(--text-white);
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Project Highlight */
.project-highlight {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--accent-cyan);
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    transition: all 0.5s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 24px !important;
        right: auto;
    }
    
    .timeline-content {
        border-left: 4px solid var(--accent-cyan) !important;
        border-right: none !important;
    }
    
    .process-interactive {
        grid-template-columns: 1fr;
    }
    
    .back-to-top,
    .random-project-btn {
        bottom: 1rem;
        right: 1rem;
        left: auto;
    }
}

/* ============================================
   ENHANCED HERO SECTION - TECHNOLOGY SHOWCASE
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
    background: var(--primary-blue);
}

/* Animated gradient mesh */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
        background-size: 100% 100%;
    }
    25% {
        background-position: 10% 20%;
        background-size: 120% 120%;
    }
    50% {
        background-position: 30% 40%;
        background-size: 140% 140%;
    }
    75% {
        background-position: 20% 30%;
        background-size: 120% 120%;
    }
    100% {
        background-position: 0% 0%;
        background-size: 100% 100%;
    }
}

/* Code rain effect (matrix-style but more subtle) */
.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
    z-index: -1;
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}

.code-rain-column {
    position: absolute;
    top: -100%;
    animation: rain linear infinite;
}

@keyframes rain {
    to {
        transform: translateY(200%);
    }
}

/* Floating geometric shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border: 2px solid rgba(6, 182, 212, 0.2);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border-color: rgba(59, 130, 246, 0.15);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    right: 20%;
    width: 80px;
    height: 80px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border-color: rgba(6, 182, 212, 0.15);
    animation-delay: -10s;
}

.shape-4 {
    bottom: 30%;
    left: 15%;
    width: 120px;
    height: 120px;
    transform: skew(10deg, 10deg);
    border-color: rgba(59, 130, 246, 0.1);
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Circuit board lines */
.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: circuitPulse 4s ease-in-out infinite;
}

@keyframes circuitPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Glowing orb effect */
.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, 
        rgba(6, 182, 212, 0.2) 0%, 
        rgba(59, 130, 246, 0.1) 30%, 
        transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    animation: orbPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes orbPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Animated grid overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(6, 182, 212, 0.03) 40px,
            rgba(6, 182, 212, 0.03) 41px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(59, 130, 246, 0.03) 40px,
            rgba(59, 130, 246, 0.03) 41px
        );
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Data stream effect */
.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0;
    animation: dataFlow 4s linear infinite;
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100%) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(calc(sin(45deg) * 100px));
        opacity: 0;
    }
}

/* Hero content enhancements */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    }
    50% {
        text-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   TECH BADGES WITH FONT AWESOME
   ============================================ */


/* ============================================
   TECH BADGES WITH FONT AWESOME - WITH ANIMATIONS
   ============================================ */

.tech-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    perspective: 1000px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
    /* Add animation properties */
    animation: badgePulse 3s ease-in-out infinite;
    animation-delay: calc(var(--badge-index) * 0.2s);
}

.tech-badge i {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
    /* Add icon animation */
    animation: iconFloat 2s ease-in-out infinite;
    animation-delay: calc(var(--badge-index) * 0.1s);
}

/* Individual icon colors */
.tech-badge[data-tech="react"] i { color: #61DAFB; }
.tech-badge[data-tech="node"] i { color: #68a063; }
.tech-badge[data-tech="python"] i { color: #FFD43B; }
.tech-badge[data-tech="ios"] i { color: #ffffff; }
.tech-badge[data-tech="android"] i { color: #3DDC84; }
.tech-badge[data-tech="iot"] i { color: #06b6d4; }

/* Badge glow effect */
.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(6, 182, 212, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.tech-badge:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
    /* Pause animation on hover */
    animation-play-state: paused;
}

.tech-badge:hover i {
    transform: scale(1.1);
    animation-play-state: paused;
}

.tech-badge:hover::before {
    left: 100%;
}

/* Animation keyframes */
@keyframes badgePulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(6, 182, 212, 0.3);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
        border-color: rgba(6, 182, 212, 0.8);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(6, 182, 212, 0.3);
    }
}

@keyframes iconFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Add entrance animation */
@keyframes badgeEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tech-badge {
    animation: badgePulse 3s ease-in-out infinite, badgeEntrance 0.6s ease-out;
    animation-delay: calc(var(--badge-index) * 0.2s), 0s;
}

/* Optional: Add a subtle glow animation for the icon */
@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 8px currentColor);
    }
}

.tech-badge i {
    animation: iconFloat 2s ease-in-out infinite, iconGlow 3s ease-in-out infinite;
    animation-delay: calc(var(--badge-index) * 0.1s), calc(var(--badge-index) * 0.15s);
}

/* Make sure the badge index variables are applied */
.tech-badge:nth-child(1) { --badge-index: 1; }
.tech-badge:nth-child(2) { --badge-index: 2; }
.tech-badge:nth-child(3) { --badge-index: 3; }
.tech-badge:nth-child(4) { --badge-index: 4; }
.tech-badge:nth-child(5) { --badge-index: 5; }
.tech-badge:nth-child(6) { --badge-index: 6; }

/* Badge glow effect */
.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(6, 182, 212, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.tech-badge:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
}

.tech-badge:hover i {
    transform: scale(1.1);
}

.tech-badge:hover::before {
    left: 100%;
}

/* Animation */
@keyframes badgePulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3);
    }
}

.tech-badge {
    animation: badgePulse 3s ease-in-out infinite;
    animation-delay: calc(var(--badge-index) * 0.2s);
}

/* Hero buttons with enhanced effects */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Animated scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    z-index: 2;
}

.scroll-indicator span {
    display: block;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.scroll-progress {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
}

.scroll-progress::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        top: 5px;
        opacity: 1;
    }
    50% {
        top: 15px;
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .tech-badges {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .tech-badge i {
        font-size: 0.9rem;
    }
    
    .shape {
        display: none;
    }
}

/* ============================================
   GENTLE PULSE ANIMATION
   ============================================ */

@keyframes gentlePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

.tech-badge {
    animation: gentlePulse 4s ease-in-out infinite;
    animation-delay: calc(var(--badge-index) * 0.3s);
}

/* ============================================
   GREETING STYLES
   ============================================ */

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: greetingGlow 2s ease-in-out infinite;
}

@keyframes greetingGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    }
}

/* Add a wave animation for fun */
@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.greeting::before {
    content: '👋';
    display: inline-block;
    margin-right: 10px;
    animation: wave 2s ease-in-out infinite;
}

/* Different emojis for different times of day - will be set by JS */
.greeting.morning::before {
    content: '☀️';
    animation: none;
}

.greeting.afternoon::before {
    content: '⛅';
    animation: none;
}

.greeting.evening::before {
    content: '🌙';
    animation: none;
}

.greeting.night::before {
    content: '✨';
    animation: none;
}

/* ============================================
   TIME-BASED BACKGROUND EFFECTS
   ============================================ */

/* Morning - bright and energetic */
body.morning .hero-background {
    background: radial-gradient(circle at 30% 50%, rgba(255, 223, 0, 0.1), rgba(6, 182, 212, 0.2));
}

/* Afternoon - warm and productive */
body.afternoon .hero-background {
    background: radial-gradient(circle at 70% 30%, rgba(255, 165, 0, 0.1), rgba(6, 182, 212, 0.2));
}

/* Evening - cool and calm */
body.evening .hero-background {
    background: radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.1), rgba(6, 182, 212, 0.2));
}

/* Night - dark and mysterious */
body.night .hero-background {
    background: radial-gradient(circle at 90% 70%, rgba(0, 0, 0, 0.3), rgba(6, 182, 212, 0.1));
}