/* Design 2: Glassmorphism Theme
   Frosted glass effects, subtle shadows, modern card designs, semi-transparent backgrounds */

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-soft);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-medium);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

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

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

/* ============================================
   Color Variables - Glassmorphism (Muted Tones)
   Based on colors from computer4-1.png
   ============================================ */
:root {
    /* Background - Soft cool blue-gray gradient (Light Mode) */
    --bg-primary: #F9FDFF;  /* Light cool blue from image */
    --bg-gradient: linear-gradient(135deg, #E8F4FA 0%, #D6E9F5 50%, #C4DEF0 100%);
    
    /* Glass effects - Muted and subtle (Light Mode) */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(67, 146, 241, 0.15);  /* Muted blue border */
    --glass-shadow: 0 8px 32px 0 rgba(67, 146, 241, 0.15);
    
    /* Text colors - Based on dark gray from monitor frame (Light Mode) */
    --text-primary: #342E37;  /* Dark purple/gray from brand */
    --text-secondary: #5A5560;  /* Softer gray */
    
    /* Accent colors - Muted teal-blue from hexagon borders */
    --accent-primary: #5BA8C4;  /* Soft teal-blue */
    --accent-secondary: #4392F1;  /* Brand blue, muted */
    --accent-muted: #7BB3D0;  /* Lighter teal for hover */
    
    /* Shadows - Soft and muted (Light Mode) */
    --shadow-soft: 0 4px 20px rgba(67, 146, 241, 0.08);
    --shadow-medium: 0 8px 30px rgba(67, 146, 241, 0.12);
}

/* Dark Mode - System Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #1A1F2E;
        --bg-gradient: linear-gradient(135deg, #1A1F2E 0%, #252B3D 50%, #2D3447 100%);
        --glass-bg: rgba(30, 35, 50, 0.6);
        --glass-border: rgba(91, 168, 196, 0.2);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
        --text-primary: #E8E8E8;
        --text-secondary: #B0B0B0;
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    }
}

/* Dark Mode - Manual Override */
[data-theme="dark"] {
    --bg-primary: #1A1F2E;
    --bg-gradient: linear-gradient(135deg, #1A1F2E 0%, #252B3D 50%, #2D3447 100%);
    --glass-bg: rgba(30, 35, 50, 0.6);
    --glass-border: rgba(91, 168, 196, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --text-primary: #E8E8E8;
    --text-secondary: #B0B0B0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Light Mode - Manual Override */
[data-theme="light"] {
    --bg-primary: #F9FDFF;
    --bg-gradient: linear-gradient(135deg, #E8F4FA 0%, #D6E9F5 50%, #C4DEF0 100%);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(67, 146, 241, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(67, 146, 241, 0.15);
    --text-primary: #342E37;
    --text-secondary: #5A5560;
    --shadow-soft: 0 4px 20px rgba(67, 146, 241, 0.08);
    --shadow-medium: 0 8px 30px rgba(67, 146, 241, 0.12);
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-size: 200% 200%;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
    animation: gradientShift 15s ease infinite;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: 0;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }
}

/* ============================================
   Glassmorphism Utility
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ============================================
   Header - Glassmorphism
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo-img {
    max-width: 180px;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
    /* Light mode: dark logo (black) */
    filter: brightness(0) saturate(100%);
    animation: fadeIn 0.8s ease-out;
}

.site-branding:hover .logo-img {
    transform: scale(1.05);
}

/* Dark mode: light logo (white) */
[data-theme="dark"] .logo-img,
[data-theme="dark"] .footer-logo-img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .logo-img,
    :root:not([data-theme]) .footer-logo-img {
        filter: brightness(0) invert(1);
    }
}

.site-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--text-primary);
    margin: 0;
    display: none;
}

.site-title.show-fallback {
    display: block;
}

.menu-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 24px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.main-navigation {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.main-navigation.active {
    max-height: 500px;
}

.main-navigation .menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-navigation .menu-item {
    border-bottom: 1px solid var(--glass-border);
}

.main-navigation a {
    display: block;
    padding: 15px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: var(--accent-primary);
    padding-left: 10px;
}

/* ============================================
   Main Content
   ============================================ */
.site-main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   CTA Section - Glass Hero
   ============================================ */
.cta-section {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    filter: blur(2px);
}

.cta-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient);
    opacity: 0.7;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.cta-content {
    z-index: 2;
}

@media (min-width: 768px) {
    .cta-section .container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .cta-content {
        order: 1;
    }
    
    .cta-image-wrapper {
        order: 2;
    }
}

.cta-section .cta-title {
    animation: fadeInUp 0.8s ease-out;
}

.cta-section .cta-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-section .cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-image-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    animation: fadeIn 1s ease-out 0.6s both, float 6s ease-in-out infinite 2s;
}

.cta-image-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) contrast(1.1);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.cta-image-slide.active {
    opacity: 1;
}

/* Web/Software Development Focused Images */
.cta-image-slide[data-image="0"] {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1200&q=80');
    /* Web analytics dashboard */
}

.cta-image-slide[data-image="1"] {
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?w=1200&q=80');
    /* Code on laptop screen */
}

.cta-image-slide[data-image="2"] {
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=1200&q=80');
    /* Modern web development workspace */
}

.cta-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0.4;
    border: 1px solid var(--glass-border);
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-image-wrapper {
        height: 500px;
    }
}

/* Fallback for old image class */
.cta-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: fadeIn 1s ease-out 0.6s both, float 6s ease-in-out infinite 2s;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .cta-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .button-primary,
    .button-secondary {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .cta-buttons {
        gap: 12px;
    }
    
    .service-icon,
    .project-icon,
    .value-icon,
    .info-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }
    
    .project-item,
    .service-item,
    .value-card {
        padding: 24px;
    }
    
    .contact-info-card {
        padding: 24px 20px;
    }
    
    .info-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .contact-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .values-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-prev {
        left: -10px;
    }
    
    .carousel-next {
        right: -10px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .logo-img {
        max-width: 140px;
    }
    
    .header-wrapper {
        gap: 10px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .cta-section {
        padding: 60px 0 50px;
    }
    
    .projects-section,
    .services-section,
    .feedback-section {
        padding: 50px 0;
    }
    
    body {
        font-size: 14px;
    }
    
    .section-intro {
        font-size: 1rem;
    }
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.button-primary {
    background: var(--accent-primary);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-primary);
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

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

.button-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.button-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.button-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    transform: translateY(-2px);
}


/* CTA Button Containers - Center on all screen sizes */
.projects-cta,
.services-cta,
.feedback-cta {
    text-align: center;
    margin-top: 40px;
}

.projects-cta .button-primary,
.projects-cta .button-secondary,
.services-cta .button-primary,
.services-cta .button-secondary,
.feedback-cta .button-primary,
.feedback-cta .button-secondary {
    display: inline-block;
    margin: 0 auto;
}

/* ============================================
   Sections
   ============================================ */
.projects-section,
.services-section,
.feedback-section {
    padding: 80px 0;
    position: relative;
}

/* Subtle background patterns for sections */
.projects-section::before,
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(91, 168, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(67, 146, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.projects-section .container,
.services-section .container,
.feedback-section .container {
    position: relative;
    z-index: 1;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease-out;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ============================================
   Cards - Glassmorphism
   ============================================ */
.projects-grid,
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.project-item,
.service-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

/* Staggered animation for grid items */
.projects-grid .project-item:nth-child(1) {
    animation-delay: 0.1s;
}

.projects-grid .project-item:nth-child(2) {
    animation-delay: 0.2s;
}

.projects-grid .project-item:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid .service-item:nth-child(1) {
    animation-delay: 0.1s;
}

.services-grid .service-item:nth-child(2) {
    animation-delay: 0.2s;
}

.services-grid .service-item:nth-child(3) {
    animation-delay: 0.3s;
}

.services-grid .service-item:nth-child(4) {
    animation-delay: 0.4s;
}

.project-item::before,
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-muted));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-item:hover,
.service-item:hover {
    background: var(--glass-bg);
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
    cursor: pointer;
}

/* Ensure hover styles persist and are not overridden by active/focus */
.project-item:active,
.service-item:active {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.project-item:focus,
.service-item:focus {
    outline: none;
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .project-item:hover,
[data-theme="dark"] .service-item:hover {
    background: rgba(40, 45, 60, 0.7);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .project-item:hover,
    :root:not([data-theme]) .service-item:hover {
        background: rgba(40, 45, 60, 0.7);
    }
}

.project-item:hover::before,
.service-item:hover::before {
    opacity: 1;
}

.project-item h3,
.service-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-icon,
.project-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.project-item:hover .project-icon,
.service-item:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(91, 168, 196, 0.3));
}

.project-link {
    color: var(--accent-primary);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Ensure card hover takes precedence over link interactions */
.project-item:hover .project-link,
.service-item:hover .project-link {
    color: var(--accent-secondary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.footer-branding {
    text-align: center;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 15px;
    transition: filter 0.3s ease;
}

.footer-contact h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--text-secondary);
}

.footer-contact a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   Page Hero
   ============================================ */
.page-hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 768px) {
    .main-navigation {
        width: auto;
        max-height: none;
        overflow: visible;
    }
    
    .main-navigation .menu {
        flex-direction: row;
        gap: 30px;
        padding: 0;
    }
    
    .main-navigation .menu-item {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 0;
    }
    
    
    .main-navigation a:hover {
        padding-left: 0;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .projects-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .projects-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-title {
        font-size: 4.5rem;
    }
    
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
}

/* ============================================
   Additional Page Styles
   ============================================ */
.about-section {
    padding: 80px 0;
}

.about-section .mission-section,
.about-section .values-section,
.about-section .story-section {
    padding: 60px 0;
}

.values-section,
.story-section,
.services-detail-section,
.process-section,
.contact-section {
    padding: 60px 0;
}

.mission-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.mission-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.mission-image {
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.3;
    z-index: 1;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

@media (min-width: 768px) {
    .mission-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-image-wrapper {
        order: 1;
        height: 400px;
    }
    
    .mission-content {
        order: 2;
    }
}

.mission-statement {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* Values Carousel */
.values-carousel-wrapper {
    position: relative;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 50px;
}

.values-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.values-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.value-card {
    flex: 0 0 calc(100% - 60px);
    min-width: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

@media (min-width: 768px) {
    .value-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
    .value-card {
        flex: 0 0 calc(33.333% - 20px);
    }
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    border: none;
}

.carousel-button:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.carousel-button:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.carousel-indicators .indicator:hover {
    background: var(--accent-muted);
    border-color: var(--accent-muted);
}

.value-icon,
.info-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.value-card:hover .value-icon,
.contact-info-card:hover .info-icon {
    transform: scale(1.1) translateY(-5px);
    animation: iconBounce 0.6s ease;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.story-timeline {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-primary);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-primary);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Contact Info Redesign */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-header {
    text-align: center;
}

.contact-info-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

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

@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info-card.primary-card {
    border: 2px solid var(--accent-primary);
    background: rgba(91, 168, 196, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
    cursor: pointer;
}

/* Ensure hover styles persist and are not overridden by active/focus */
.contact-info-card:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.contact-info-card:focus {
    outline: none;
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.contact-info-card.primary-card:hover {
    background: rgba(91, 168, 196, 0.15);
}

.info-icon-wrapper {
    margin-bottom: 20px;
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.contact-info-card .info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info-card h4 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
}

.info-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-link-arrow {
    transition: transform 0.3s ease;
}

.contact-link:hover .contact-link-arrow {
    transform: translateX(4px);
}

.form-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.required {
    color: #e74c3c;
}

.info-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.value-card,
.service-detail-card,
.process-step {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
}

.value-card:hover,
.service-detail-card:hover,
.process-step:hover {
    background: var(--glass-bg);
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
    cursor: pointer;
}

/* Ensure hover styles persist and are not overridden by active/focus */
.value-card:active,
.service-detail-card:active,
.process-step:active {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.value-card:focus,
.service-detail-card:focus,
.process-step:focus {
    outline: none;
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .value-card:hover,
[data-theme="dark"] .service-detail-card:hover,
[data-theme="dark"] .process-step:hover {
    background: rgba(40, 45, 60, 0.7);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .value-card:hover,
    :root:not([data-theme]) .service-detail-card:hover,
    :root:not([data-theme]) .process-step:hover {
        background: rgba(40, 45, 60, 0.7);
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    box-shadow: var(--shadow-soft);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(91, 168, 196, 0.2);
    background: var(--glass-bg);
}

[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form select:focus,
[data-theme="dark"] .contact-form textarea:focus {
    background: rgba(40, 45, 60, 0.7);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .contact-form input:focus,
    :root:not([data-theme]) .contact-form select:focus,
    :root:not([data-theme]) .contact-form textarea:focus {
        background: rgba(40, 45, 60, 0.7);
    }
}

::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Form Messages and Errors */
.form-messages {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeInUp 0.4s ease-out;
}

.form-messages.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-messages.error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Honeypot fields - completely hidden from users */
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Form wrapper - for hiding after submission */
#form-wrapper {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

#form-wrapper.hidden {
    display: none;
}

/* Success message styling when form is hidden */
.contact-form:has(#form-wrapper.hidden) #form-messages {
    margin-top: 20px;
    padding: 30px;
    font-size: 1.1rem;
    text-align: center;
}

/* reCAPTCHA styling */
.form-group .g-recaptcha {
    margin: 0 0 2rem 0; /* Add spacing below reCAPTCHA */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 78px; /* Standard reCAPTCHA height */
}

/* Ensure reCAPTCHA is visible and properly sized */
.g-recaptcha > div {
    margin: 0 auto;
}

/* Submit button in form-group */
.form-group button[type="submit"] {
    width: 100%;
    margin-top: 0;
}

.field-error {
    display: block;
    color: #f44336;
    font-size: 0.875rem;
    margin-top: 5px;
    animation: fadeIn 0.3s ease-out;
}

/* Only show validation colors after user interaction or on submit */
.contact-form input:invalid:not(:placeholder-shown):not(:focus),
.contact-form select:invalid:not(:focus),
.contact-form textarea:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(244, 67, 54, 0.5);
}

.contact-form input:valid:not(:placeholder-shown):not(:focus),
.contact-form select:valid:not(:focus),
.contact-form textarea:valid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(76, 175, 80, 0.5);
}

/* Show validation colors when form is submitted */
.contact-form.submitted input:invalid,
.contact-form.submitted select:invalid,
.contact-form.submitted textarea:invalid {
    border-color: rgba(244, 67, 54, 0.5);
}

.contact-form.submitted input:valid:not(:placeholder-shown),
.contact-form.submitted select:valid,
.contact-form.submitted textarea:valid:not(:placeholder-shown) {
    border-color: rgba(76, 175, 80, 0.5);
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loading {
    display: inline-block;
}

.btn-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ============================================
   Theme Toggle Button (Inside Menu)
   ============================================ */
.menu-item-theme {
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
    padding-top: 10px;
}

.menu-theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    width: 100%;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.menu-theme-toggle:hover,
.menu-theme-toggle:focus {
    color: var(--accent-primary);
    padding-left: 10px;
}

.menu-theme-toggle .icon-sun,
.menu-theme-toggle .icon-moon {
    font-size: 20px;
    display: none;
}

.menu-theme-toggle .theme-label {
    display: inline-block;
}

[data-theme="light"] .menu-theme-toggle .icon-sun,
:root:not([data-theme]) .menu-theme-toggle .icon-sun {
    display: inline-block;
}

[data-theme="dark"] .menu-theme-toggle .icon-moon {
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .menu-theme-toggle .icon-moon {
        display: inline-block;
    }
    
    :root:not([data-theme]) .menu-theme-toggle .icon-sun {
        display: none;
    }
}

/* Desktop: Theme toggle in menu */
@media (min-width: 768px) {
    .menu-item-theme {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
    
    .menu-theme-toggle {
        padding: 5px 0;
        position: relative;
    }
    
    .menu-theme-toggle:hover,
    .menu-theme-toggle:focus {
        padding-left: 0;
    }
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .projects-section,
    .services-section,
    .feedback-section,
    .about-section {
        opacity: 0;
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .projects-section {
        animation-delay: 0.1s;
    }
    
    .services-section {
        animation-delay: 0.2s;
    }
    
    .feedback-section {
        animation-delay: 0.3s;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
