/* ---
Root Variables and Global Styles
--- */
:root {
    --color-black: #0a0a0a;
    --color-deep-purple: #1a0d2e;
    --color-neon-purple: #8b5cf6;
    --color-white: #ffffff;
    --font-primary: 'Orbitron', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --nav-height-mobile: 70px; /* Base height for mobile */
    --nav-height-desktop: 80px; /* Base height for desktop */
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-neon-purple);
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.container {
    width: 95%; /* Default for mobile */
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 0; /* Default padding for mobile */
}


/* ---
Header and Navigation (Mobile-First)
--- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height-mobile);
    padding: 0 3%; /* Mobile padding */
    background: rgba(26, 13, 46, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.nav-logo .logo-img {
    height: 45px; /* Increased mobile logo size */
    transition: transform 0.3s ease;
}

.nav-logo .logo-img:hover {
    transform: scale(1.1);
}

/* Nav menu initially hidden on mobile */
.nav-menu {
    display: none; 
    position: fixed;
    left: 0;
    top: var(--nav-height-mobile);
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 100%;
    height: calc(100vh - var(--nav-height-mobile));
    text-align: center;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%); /* Hidden off-screen */
    gap: 0;
    padding-top: 2rem;
    overflow-y: auto;
    list-style: none;
    z-index: 999;
}

.nav-menu.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
    z-index: 1001;
}

.nav-item {
    margin: 1.5rem 0;
}

.nav-link {
    font-family: var(--font-primary);
    color: var(--color-white);
    font-size: 1.2rem;
    padding: 0.8rem 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
    color: var(--color-neon-purple);
}

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

.hamburger {
    display: block; /* Visible on mobile */
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-white);
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

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

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


/* ---
Footer
--- */
.main-footer-container {
    background-color: var(--color-deep-purple);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.footer-content .social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-white);
    margin: 0 0.75rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-neon-purple);
}


/* ---
General Components (Mobile-First)
--- */
.section-title {
    text-align: center;
    font-size: 2rem; /* Default for mobile */
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title-small { /* For contact page */
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-neon-purple);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem; /* Mobile size */
    font-family: var(--font-primary);
    background: var(--color-neon-purple);
    color: var(--color-white);
    border-radius: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.cta-button-outline {
    display: inline-block;
    padding: 0.8rem 1.8rem; /* Mobile size */
    font-family: var(--font-primary);
    color: var(--color-neon-purple);
    border: 2px solid var(--color-neon-purple);
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button-outline:hover {
    background-color: var(--color-neon-purple);
    color: var(--color-white);
}

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

/* ---
Hero Section (Mobile-First)
--- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 1rem; /* Added horizontal padding for mobile hero content */
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content .logo-container {
    margin-bottom: 1.5rem; /* Mobile margin */
}

#hero-logo {
    max-width: 180px; /* Mobile logo size */
    height: auto;
}

.hero-tagline {
    font-size: 1.3rem; /* Mobile font size */
    max-width: 90%;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* ---
Page Hero (Mobile-First)
--- */
.page-hero {
    padding: 3rem 0; /* Mobile padding */
    background: linear-gradient(180deg, var(--color-deep-purple) 0%, var(--color-black) 100%);
    text-align: center;
}

.page-title {
    font-size: 2.5rem; /* Mobile font size */
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem; /* Mobile font size */
    color: #aaa;
}


/* ---
Services Teaser (Mobile-First)
--- */
.service-cards {
    display: grid;
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 1.5rem;
}

.service-card {
    background: rgba(26, 13, 46, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 1.5rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 15px rgba(139, 92, 246, 0.3);
}

.service-card h3 {
    color: var(--color-neon-purple);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}


/* ---
Featured Projects (Mobile-First)
--- */
.project-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack projects vertically */
    gap: 1.5rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}

.project-item img {
    width: 100%;
    height: 200px; /* Mobile image height */
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: var(--color-deep-purple); /* Placeholder color */
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
}

.project-overlay h3 {
    font-size: 1.3rem;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-item:hover .project-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/* ---
Process Teaser (Mobile-First)
--- */
#process-teaser {
    text-align: center;
}
.timeline-teaser {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.timeline-step {
    font-family: var(--font-primary);
    padding: 0.8rem;
    border: 1px solid var(--color-neon-purple);
    border-radius: 50%;
    width: 80px; /* Mobile size */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.timeline-line {
    width: 2px; /* Vertical line on mobile */
    height: 50px;
    background-color: var(--color-neon-purple);
}

#cta-bottom {
    padding: 3rem 0;
}


/* ---
Projects Page Specifics (Mobile-First)
--- */
#filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem; /* Smaller gap for mobile */
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-neon-purple);
    padding: 0.6rem 1rem; /* Mobile size */
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-neon-purple);
    box-shadow: 0 0 8px var(--color-neon-purple);
}

.full-project-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack projects vertically */
    gap: 1.5rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-neon-purple);
}

.project-card img {
    width: 100%;
    height: 200px; /* Mobile height */
    object-fit: cover;
    transition: transform 0.4s ease;
    background-color: var(--color-deep-purple);
}

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1.5rem 1rem 0.8rem; /* Mobile padding */
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}


/* ---
Modal (Mobile-First)
--- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-deep-purple);
    margin: auto;
    padding: 1.5rem; /* Mobile padding */
    border: 1px solid var(--color-neon-purple);
    width: 95%; /* Mobile width */
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation: zoom-in 0.4s ease-out;
}

@keyframes zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-size: 1.8rem; /* Mobile size */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-white);
}

#modal-img {
    width: 100%;
    height: auto;
    max-height: 250px; /* Mobile max height */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

#modal-title {
    color: var(--color-neon-purple);
    margin-bottom: 0.8rem;
    font-size: 1.8rem;
}

#modal-description {
    margin-bottom: 1rem;
}

#modal-tags {
    margin-bottom: 1.5rem;
}

#modal-tags .tag {
    display: inline-block;
    background: var(--color-black);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.4rem;
}

#modal-link {
    font-size: 0.9rem;
}

/* ---
Services Page Specifics (Mobile-First)
--- */
.service-cards-detailed {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card-detailed {
    background: var(--color-deep-purple);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-neon-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.service-card-detailed h3 {
    font-size: 1.5rem;
    color: var(--color-neon-purple);
    margin-bottom: 0.8rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--color-neon-purple);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; /* Ensure horizontal scroll on small screens if needed */
}

.comparison-table th, .comparison-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.comparison-table thead {
    background-color: var(--color-deep-purple);
}

.comparison-table th {
    font-family: var(--font-primary);
    font-size: 1rem;
}

.comparison-table tbody tr {
    background: rgba(26, 13, 46, 0.4);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: bold;
}

.comparison-table td:not(:first-child) {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.2rem;
}
.comparison-table td {
    color: transparent;
}
.comparison-table td:first-child{
    color: white;
}
.comparison-table td:not(:first-child) {
    text-align: center;
}
.comparison-table tbody td {
    font-weight: 900;
}
.comparison-table td:nth-child(2)::before { content: '✔'; }
.comparison-table tr:nth-child(2) td:nth-child(3)::before { content: '✔'; }
.comparison-table tr:nth-child(3) td:nth-child(4)::before { content: '✔'; }
.comparison-table tr:nth-child(4) td:nth-child(2)::before { content: '✔'; }
.comparison-table tr:nth-child(4) td:nth-child(3)::before { content: '✔'; }
.comparison-table tr:nth-child(5) td:nth-child(2)::before { content: '✔'; }
.comparison-table tr:nth-child(5) td:nth-child(4)::before { content: '✔'; }
.comparison-table tr:nth-child(6) td:nth-child(2)::before { content: '✔'; }
.comparison-table tr:nth-child(6) td:nth-child(3)::before { content: '✔'; }
.comparison-table tr:nth-child(6) td:nth-child(4)::before { content: '✔'; }
.comparison-table tr:nth-child(7) td:nth-child(3)::before { content: '✔'; }
.comparison-table tr:nth-child(7) td:nth-child(4)::before { content: '✔'; }
#cta-services {
    margin-top: 3rem;
}

/* ---
Process Page Specifics (Mobile-First)
--- */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-deep-purple);
    top: 0;
    bottom: 0;
    left: 30px; /* Align vertical line to left on mobile */
    margin-left: -2px;
    z-index: -1;
}

.timeline-item {
    padding: 1rem 1rem 1rem 80px; /* Left padding for icon */
    position: relative;
    width: 100%; /* Full width on mobile */
    text-align: left;
}
    
.timeline-icon {
    position: absolute;
    top: 1.5rem; /* Adjusted vertical position */
    left: 0; /* Align icon to left */
    transform: translateY(0); /* Remove transform for mobile */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-deep-purple);
    border: 3px solid var(--color-neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-neon-purple);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1); /* Only scale on hover for mobile */
    box-shadow: 0 0 10px var(--color-neon-purple);
}

.timeline-content {
    padding: 1rem;
    background: rgba(26, 13, 46, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.timeline-content h2 {
    font-size: 1.3rem;
    color: var(--color-neon-purple);
}


/* ---
Team Page Specifics (Mobile-First)
--- */
#team-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.team-member-card {
    background-color: transparent;
    height: 380px; /* Mobile height */
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-member-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    border-radius: 10px;
    border: 1px solid var(--color-neon-purple);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.card-front {
    background: var(--color-deep-purple);
}

.card-front img {
    width: 100px; /* Mobile size */
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--color-neon-purple);
    object-fit: cover;
    margin-bottom: 0.8rem;
    background-color: var(--color-black);
}

.card-front h3 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.card-front p {
    color: var(--color-neon-purple);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.card-back {
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-deep-purple) 100%);
    color: white;
    transform: rotateY(180deg);
}

.card-back h3 {
    margin-bottom: 0.5rem;
}


/* ---
Contact Page Specifics (Mobile-First)
--- */
#contact-section {
    padding-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 2.5rem; /* Increased gap */
}

.contact-form-container {
    background: var(--color-deep-purple);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: bold;
    color: var(--color-white);
    font-size: 1.1rem; /* Slightly larger label */
    font-family: var(--font-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem; /* Increased padding */
    background-color: rgba(26, 13, 46, 0.7); /* Slightly transparent background */
    border: 2px solid var(--color-neon-purple); /* Thicker border */
    border-radius: 12px; /* More rounded corners */
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.4s ease; /* Smoother transitions */
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); /* Stronger initial glow */
    outline: none; /* Remove default outline */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5); /* Lighter placeholder */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-white); /* White border on focus */
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.9), 0 0 40px rgba(139, 92, 246, 0.6); /* Intense neon glow */
    transform: scale(1.01); /* Subtle scale effect */
}

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

.contact-form .cta-button {
    width: 100%; /* Full width button on mobile */
    padding: 1.2rem 2.5rem; /* Larger padding for tap target */
    font-size: 1.2rem; /* Larger font for tap target */
    margin-top: 1.5rem; /* Increased margin */
    border-radius: 10px; /* More rounded button */
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); /* Stronger button glow */
}

.contact-form .cta-button:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 1), 0 0 50px rgba(139, 92, 246, 0.8); /* Even stronger glow on hover */
}

.contact-details {
    background: linear-gradient(145deg, var(--color-deep-purple), var(--color-black));
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--color-neon-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    margin-top: 2rem; /* Added margin for mobile separation */
}

.contact-details h3 {
    color: var(--color-neon-purple);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-details p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    text-align: center;
}

.contact-details a {
    color: var(--color-white);
    transition: color 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-block; /* For the underline effect */
}

.contact-details a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-neon-purple);
    transition: width 0.3s ease-in-out;
}

.contact-details a:hover::after {
    width: 100%;
}

.map-container {
    border: 1px solid var(--color-neon-purple);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem; /* Adjusted margin */
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.map-container iframe {
    display: block;
    height: 280px; /* Adjusted mobile map height */
}

.social-icons-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem; /* Adjusted margin */
}

.social-icons-contact a {
    font-size: 2.2rem; /* Slightly larger icons */
    color: var(--color-neon-purple);
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-icons-contact a:hover {
    color: var(--color-white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 15px var(--color-neon-purple); /* Glow on hover */
}


/* ---
Desktop & Tablet Adjustments (Min-Width)
--- */
@media (min-width: 769px) {
    .navbar {
        height: var(--nav-height-desktop); /* Larger nav height for desktop */
        padding: 0 5%;
    }
    .nav-logo .logo-img {
        height: 55px; /* Increased desktop logo size */
    }

    /* Show nav-menu on desktop, hide hamburger */
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        transform: translateX(0); /* Ensure it's in view */
        padding-top: 0;
        gap: 2rem;
        overflow-y: visible;
        z-index: 1000;
    }
    .nav-menu.active { /* Reset active state for desktop */
        transform: translateX(0);
        display: flex;
    }

    .nav-item {
        margin: 0;
    }
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }


    .container {
        width: 90%;
        padding: 2.5rem 0;
    }

    /* General Components */
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
        letter-spacing: 2px;
    }
    .section-title-small {
        text-align: left;
        font-size: 2rem;
    }
    .cta-button, .cta-button-outline {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    /* Hero Section */
    #hero-logo {
        max-width: 300px;
    }
    .hero-tagline {
        font-size: 2rem;
        max-width: 800px;
        margin-bottom: 2rem;
        padding: 0;
    }

    /* Page Hero */
    .page-hero {
        padding: 5rem 0;
    }
    .page-title {
        font-size: 3rem;
    }
    .page-subtitle {
        font-size: 1.2rem;
    }

    /* Services Teaser */
    .service-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2+ columns */
        gap: 2rem;
    }
    .service-card {
        padding: 2rem;
    }
    .service-card h3 {
        font-size: 1.8rem;
    }

    /* Featured Projects */
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ columns */
        gap: 2rem;
    }
    .project-item img {
        height: 250px;
    }
    .project-item:hover img {
        transform: scale(1.1);
    }
    .project-overlay {
        padding: 3rem 1.5rem 1.5rem;
    }
    .project-overlay h3 {
        font-size: 1.5rem;
    }

    /* Process Teaser */
    .timeline-teaser {
        flex-direction: row; /* Horizontal on desktop */
        gap: 1rem;
    }
    .timeline-step {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }
    .timeline-line {
        width: 100px;
        height: 2px;
    }
    #cta-bottom {
        padding: 4rem 0;
    }

    /* Projects Page Specifics */
    #filter-buttons {
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    .full-project-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ columns */
    }
    .project-card img {
        height: 280px;
    }
    .project-card:hover img {
        transform: scale(1.1);
    }
    .card-overlay {
        padding: 2rem 1rem 1rem;
    }
    .card-overlay h3 {
        font-size: 1.3rem;
    }
    /* Modal */
    .modal-content {
        padding: 3rem;
        width: 90%;
    }
    .close-modal {
        font-size: 2rem;
        top: 1rem;
        right: 1.5rem;
    }
    #modal-img {
        max-height: 300px;
    }
    #modal-title {
        font-size: 2rem;
    }
    #modal-link {
        font-size: 1rem;
    }

    /* Services Page Specifics */
    .service-cards-detailed {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2+ columns */
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .service-card-detailed {
        padding: 2rem;
    }
    .service-card-detailed h3 {
        font-size: 1.8rem;
    }
    .comparison-table th, .comparison-table td {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    .comparison-table th {
        font-size: 1.2rem;
    }
    .comparison-table td:not(:first-child) {
        font-size: 1.5rem;
    }
    #cta-services {
        margin-top: 4rem;
    }

    /* Process Page Specifics */
    .timeline-container {
        padding: 2rem 0;
    }
    .timeline-container::after {
        left: 50%; /* Center line on desktop */
    }
    .timeline-item {
        padding: 1rem 2.5rem;
        width: 50%;
    }
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 4rem;
        text-align: right;
    }
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 4rem;
    }
    .timeline-icon {
        top: 50%;
        transform: translateY(-50%); /* Reset transform for desktop */
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    .timeline-item:nth-child(odd) .timeline-icon {
        right: -30px;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: -30px;
    }
    .timeline-content {
        padding: 1.5rem;
    }
    .timeline-content h2 {
        font-size: 1.5rem;
    }

    /* Team Page Specifics */
    #team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 2+ columns */
        gap: 2rem;
        padding-bottom: 4rem;
    }
    .team-member-card {
        height: 400px;
    }
    .card-front img {
        width: 120px;
        height: 120px;
    }
    .card-front h3 {
        font-size: 1.5rem;
    }
    .card-front p {
        font-size: 1rem;
    }

    /* Contact Page Specifics */
    #contact-section {
        padding-bottom: 4rem;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for desktop */
        gap: 3rem;
    }
    .contact-form .cta-button {
        width: auto;
    }
    .contact-details {
        margin-top: 0; /* Reset margin for desktop layout */
    }
    .contact-details h3, .contact-details p {
        text-align: left; /* Align text left on desktop */
    }
    .map-container {
        margin-top: 0; /* Reset margin */
    }
    .map-container iframe {
        height: 350px;
    }
    .social-icons-contact {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    .social-icons-contact a {
        font-size: 2rem;
    }
}

/* Larger Desktop Adjustments */
@media (min-width: 1200px) {
    .container {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 3rem;
    }
    .page-title {
        font-size: 3.5rem;
    }
    .page-subtitle {
        font-size: 1.3rem;
    }
    .hero-tagline {
        font-size: 2.5rem;
    }
    .service-cards, .service-cards-detailed, .project-grid, #team-grid {
        gap: 2.5rem;
    }
    .timeline-item {
        padding: 1.5rem 2.5rem;
    }
    .timeline-item:nth-child(odd) {
        padding-right: 5rem;
    }
    .timeline-item:nth-child(even) {
        padding-left: 5rem;
    }
}