/* CSS Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

/* Color Variables - Dark Mode (Default) */
:root {
    /* Dark Mode Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #60a5fa;
    --accent-dark: #1e40af;
    --surface: rgba(30, 41, 59, 0.7);
    --border: rgba(71, 85, 105, 0.3);
    --shadow: rgba(0, 0, 0, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Dark mode specific */
    color-scheme: dark;
}

/* Light Mode */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #475569;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-dark: #1e40af;
    --surface: rgba(241, 245, 249, 0.8);
    --border: rgba(148, 163, 184, 0.2);
    --shadow: rgba(0, 0, 0, 0.08);
    --success: #059669;
    --warning: #d97706;
    
    color-scheme: light;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scroll Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
}

.scroll-animate.visible {
    animation: fadeInUp 0.8s ease forwards;
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-60px);
}

.scroll-animate-left.visible {
    animation: slideInLeft 0.8s ease forwards;
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(60px);
}

.scroll-animate-right.visible {
    animation: slideInRight 0.8s ease forwards;
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
}

.scroll-animate-scale.visible {
    animation: scaleIn 0.8s ease forwards;
}

/* Header and Navigation */
header {
    background: var(--surface);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 1rem;
}

.logo h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* Show dark logo by default, light logo in light mode */
.logo-light {
    display: none;
}

body.light-mode .logo-dark {
    display: none;
}

body.light-mode .logo-light {
    display: block;
}

/* Dark/Light Mode Toggle */
.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.4rem;
    cursor: pointer;
    display: flex;
    gap: 0.3rem;
    width: fit-content;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-instagram {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-instagram:hover {
    color: #E1306C;
}

.nav-instagram-mobile {
    display: none;
}

.nav-instagram-mobile i {
    margin-right: 0.4rem;
}

.footer-instagram {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-instagram:hover {
    color: #E1306C;
}

.desktop-only {
    display: flex;
}

/* Mobile Settings in Dropdown */
.mobile-settings {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem !important;
    background: var(--bg-tertiary);
}

.mobile-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-settings-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Mobile Theme Toggle Switch */
.mobile-theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.mobile-theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mobile-theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    transition: 0.3s;
    border-radius: 26px;
}

.mobile-theme-slider:before {
    position: absolute;
    content: "🌙";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mobile-theme-switch input:checked + .mobile-theme-slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

.mobile-theme-switch input:checked + .mobile-theme-slider:before {
    content: "☀️";
    transform: translateX(24px);
}

/* Mobile Language Selector */
.mobile-language-selector {
    display: flex;
    gap: 0.4rem;
}

.mobile-lang-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
}

.mobile-lang-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-light);
}

.mobile-lang-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.lang-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-light);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger {
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

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

.nav-link-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease !important;
}

.nav-link-cta::after {
    display: none !important;
}

.nav-link-cta:hover {
    background: transparent !important;
    color: var(--accent) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.92) 100%);
    z-index: 2;
}

body.light-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: slideUp 1s ease-out;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--accent-light);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.cta-button {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* About Section */
.about-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent);
    letter-spacing: 1px;
}

.about-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.about-subtitle-secondary {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin: 1.5rem auto;
    max-width: 800px;
}

.feature-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateX(5px);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
    background: linear-gradient(135deg, var(--surface), rgba(59, 130, 246, 0.05));
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-tertiary);
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.about-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-emphasis {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-tertiary);
}

.about-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.about-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Services Section */
.services-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.section-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.section-logo-img {
    height: 55px;
    width: auto;
}

/* Show dark logo by default, light logo in light mode */
.section-logo-img.logo-light {
    display: none;
}

body.light-mode .section-logo-img.logo-dark {
    display: none;
}

body.light-mode .section-logo-img.logo-light {
    display: block;
}

.services-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    height: 350px;
    perspective: 1200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card-front {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px var(--shadow);
    padding: 2rem;
    gap: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card with background image */
.card-front-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}

.card-front-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.60) 0%, rgba(30, 41, 59, 0.65) 100%);
    border-radius: inherit;
}

body.light-mode .card-front-overlay {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.65) 0%, rgba(241, 245, 249, 0.70) 100%);
}

.card-front-title {
    position: relative;
    z-index: 1;
    color: #fff !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

body.light-mode .card-front-title {
    color: var(--text-primary) !important;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
}

.card-front h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.5px;
}

.card-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    animation: iconBounce 3s ease-in-out infinite;
}

.card-logo-img {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Show dark logo by default, light logo in light mode */
.card-logo-img.logo-light {
    display: none;
}

body.light-mode .card-logo-img.logo-dark {
    display: none;
}

body.light-mode .card-logo-img.logo-light {
    display: block;
}

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

.card-back {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transform: rotateY(180deg);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.card-back p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.card:hover .card-front {
    transform: rotateY(180deg);
}

.card:hover .card-back {
    transform: rotateY(0);
}

/* Projects Section */
.projects-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.projects-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.project-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow);
    border-color: var(--accent-light);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.project-image-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    text-decoration: none;
}

.collage-cell {
    overflow: hidden;
    height: 100%;
}

.collage-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.project-image-collage:hover .collage-cell img {
    transform: scale(1.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-item h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.project-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.project-text {
    color: var(--text-tertiary);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* Certificates Section */
.certificates-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.certificates-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.cert-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cert-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    background: linear-gradient(135deg, var(--surface), rgba(59, 130, 246, 0.1));
    box-shadow: 0 15px 40px var(--shadow);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cert-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-item p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

/* Contact Section */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
.contact-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
}

.contact-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.info-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-tertiary);
    font-size: 1rem;
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.submit-button {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 2rem;
    background: var(--bg-primary);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.gallery-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-zoom {
    color: white;
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Responsive Gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 4rem 1rem;
    }

    .gallery-section h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .lightbox-prev { left: 0.3rem; }
    .lightbox-next { right: 0.3rem; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Preview (below projects section) */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.gallery-preview-item {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    border: 1px solid var(--border);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.05);
}

.gallery-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.8rem;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
    .gallery-preview-item {
        height: 200px;
    }
}

/* Footer */
footer {
    background: var(--bg-secondary);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 -5px 20px var(--shadow);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.footer-content p {
    color: var(--text-tertiary);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0;
        overflow: visible;
        position: fixed;
        left: 0;
        right: 0;
    }

    header.nav-hidden {
        transform: translateY(-100%);
    }

    body {
        padding-top: 60px;
    }

    .navbar {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
        position: relative;
        width: 100%;
        max-width: 100%;
    }

    .logo-img {
        height: 45px;
    }

    .hamburger {
        display: flex;
    }

    /* Hide desktop language/theme selector on mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show mobile settings in dropdown menu */
    .mobile-settings {
        display: flex;
    }

    /* Show Instagram link in mobile menu */
    .nav-instagram-mobile {
        display: block !important;
        color: var(--text-secondary);
        text-decoration: none;
        font-weight: 600;
    }

    .nav-instagram-mobile:hover {
        color: #E1306C;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: none;
        padding: 0;
        list-style: none;
        overflow: hidden;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
        z-index: 999;
        max-height: none;
    }

    .menu.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    }

    .menu li {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .menu li a {
        display: block;
    }

    .menu .nav-link-cta {
        background: none;
        color: var(--text-secondary) !important;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .menu .nav-link-cta:hover {
        color: var(--accent) !important;
        background: none !important;
    }

    .language-selector {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .theme-toggle {
        padding: 0.3rem;
    }

    .theme-toggle-btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .card-container {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-subtitle-secondary {
        font-size: 1rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem auto;
    }

    .feature-item {
        padding: 1.2rem 1rem;
        min-height: 70px;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .about-list li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    .about-emphasis {
        font-size: 1rem;
    }

    .services-section,
    .projects-section,
    .certificates-section,
    .contact-section,
    .about-section {
        padding: 4rem 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}