/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

:root {
    --primary-blue: #5AE4F7;
    --primary-dark: #1F2425;
    --primary-medium: #879CA6;
    --primary-light: #E0EAEF;
    --text-white: #EEF2F4;
    --text-secondary: rgba(238, 242, 244, 0.7);
    /* Stack Cards Variables */
    --cards: 3;
    --cardHeight: 60vh;
    --cardTopPadding: 1.5em;
    --cardMargin: 4vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-size: 4.8125rem; /* 77px */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-tagline {
    font-size: 0.9375rem; /* 15px */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: 'Giest Mono', 'Courier New', monospace;
}

/* Mobile Typography */
@media (max-width: 768px) {
    .mobile-heading {
        font-size: 1.8rem !important; /* 36px */
    }
    
    .mobile-text {
        font-size: 1rem !important; /* 14px */
    }
    
    .section-tagline {
        font-size: 0.875rem; /* Smaller for mobile */
    }
    
    h1 {
        font-size: clamp(2.5rem, 10vw, 4.8125rem);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(31, 36, 37, 0.5); /* 0.5 opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    transform: translateY(0);
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 2rem;
    width: auto;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Giest Mono', 'Courier New', monospace;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--text-white);
}

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

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

.get-in-touch-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-dark);
    color: var(--text-white);
    border: 2px solid var(--primary-dark);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.book-meeting-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--primary-blue);
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 10px;
}

.hamburger-icon span:nth-child(3) {
    top: 20px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    color: black;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Giest Mono', 'Courier New', monospace;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary-blue);
}

.mobile-nav-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    border-radius: 0 0 20px 20px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    z-index: 0;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) brightness(0.7);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: 1;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-tagline {
    font-size: 0.9375rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    font-family: 'Giest Mono', 'Courier New', monospace;
}

.hero-title {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title span {
    color: var(--primary-blue);
}

.hero-description {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

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

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1.2rem 1rem;
    background: var(--primary-blue);
    color: var(--primary-dark);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 228, 247, 0.3);
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: var(--primary-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

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

.about-text h2 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text .section-tagline {
    color: var(--primary-dark);
}

.about-image {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    align-content: center;
}

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

/* Logo Grid Styles - Updated */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
    background: var(--primary-light);
    border-radius: 20px;
}

.logo-grid-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid transparent;
}

.logo-grid-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Portfolio Section */
.portfolio-section {
    padding: 8rem 0;
    background: var(--primary-dark);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--primary-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-blue);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.8);
}

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

.portfolio-content {
    padding: 2rem;
}

.portfolio-client {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(90, 228, 247, 0.1);
    color: var(--primary-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(90, 228, 247, 0.3);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    color: black;
    z-index: 2000;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: none;
}

.portfolio-overlay.active {
    transform: translateY(0);
    display: block;
}

.overlay-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.overlay-link {
    background: var(--primary-blue);
    color: var(--primary-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.overlay-link:hover {
    transform: scale(1.05);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(90, 228, 247, 0.3);
}

.overlay-link svg path {
    stroke: currentColor;
    stroke-width: 1px; /* Changed from 2px to 1px */
    paint-order: stroke fill;
}

.overlay-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.overlay-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.overlay-tag {
    background: var(--primary-dark);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.overlay-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-right: 1rem;
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.overlay-logo {
    height: 3rem;
}

.overlay-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.overlay-body p {
    margin-bottom: 1.5rem;
    color: #333;
}

.overlay-body h3 {
    margin: 2rem 0 1rem;
    color: var(--primary-dark);
}

.overlay-image {
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overlay-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Technology Grid Styles */
.technology-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-item-grid {
    aspect-ratio: 1;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tech-item-grid:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-item-grid img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.tech-item-grid:hover img {
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 8rem 0;
    position: relative;
    background: var(--primary-medium);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

/* Stack Cards Styling */
#cards {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(var(--cards), var(--cardHeight));
    gap: var(--cardMargin);
    padding-bottom: calc(var(--cards) * var(--cardTopPadding));
    margin-bottom: var(--cardMargin);
    margin-top: 4rem;
}

#card1 {
    --index: 1;
}
#card2 {
    --index: 2;
}
#card3 {
    --index: 3;
}

.card {
    position: sticky;
    top: 0;
    padding-top: calc(var(--index) * var(--cardTopPadding));
}

.service-card {
    display: flex;
    background: #A8BDC7;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    height: var(--cardHeight);
    transition: all 0.5s;
}

.service-info {
    flex: 1;
    padding: 3rem;
    color: var(--primary-dark);
}

.service-image {
    flex: 2;
    position: relative;
}

.service-image-inner {
    position: absolute;
    top: 1%;
    left: 1%;
    right: 1%;
    bottom: 1%;
    background: #E0EAEF;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-description {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--primary-dark);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-tech .tech-tag {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

/* Team Section */
.team-section {
    padding: 8rem 0;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

.team-section .section-header h2 {
    color: var(--primary-dark);
}

.team-section .section-tagline {
    color: var(--primary-dark);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.team-member {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.team-card {
    position: relative;
    width: 100%;
}

.team-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--text-white);
    text-align: center;
}

.team-details {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--primary-dark);
}

.team-role {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--primary-dark);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-blue);
    color: var(--primary-dark);
}

/* Tech Stack Section */
.tech-section {
    padding: 6rem 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

.tech-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tech-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 4rem;
    align-items: center;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tech-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: var(--primary-black);
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
}

.contact-content {
    text-align: center;
    margin: 0 auto;
    background: var(--primary-blue);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-title {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.contact-subtitle {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-dark);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-section .cta-button {
    background: var(--primary-dark);
    color: var(--text-white);
}

.contact-section .section-tagline {
    color: var(--primary-dark);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 0.5. Reduce margins by 50% on mobile */
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }

    /* 1. Mobile logo swap */
    .logo img {
        content: url("Assets/Levy_St_Logo_Mobile.png");
    }

    /* Show hamburger menu, hide desktop nav links */
    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile logo grid improvements - UPDATED */
    .about-image {
        height: auto; /* Allow height to be determined by content */
    }
    
    .logo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for better visibility */
        gap: 0.2rem; /* Reduce gap further to prevent overflow */
        width: 90%; /* Slightly narrower than container to prevent overflow */
        padding: 0.25rem; /* Smaller padding */
        margin: 0 auto; /* Center the grid */
        max-width: 100%; /* Ensure it doesn't overflow */
        overflow: hidden; /* Hide any overflow */
    }
    
    .logo-grid-item {
        padding: 0.25rem; /* Smaller padding */
        border-radius: 6px; /* Smaller radius */
        aspect-ratio: 1; /* Maintain square aspect ratio */
        width: 100%; /* Ensure full width of grid cell */
        box-sizing: border-box; /* Include padding in width calculation */
    }
    
    .logo-grid-item img {
        max-width: 75%; /* Make logos even smaller */
        max-height: 75%; /* Make logos even smaller */
    }

    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Mobile overlay-header fix - horizontal stacking */
    .overlay-header {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .overlay-title {
        font-size: 1.5rem !important;
        margin-right: 0.5rem;
    }

    .overlay-logo {
        height: 2rem;
    }

    .overlay-link {
        margin-left: 0.5rem;
        margin-top: 0;
        width: 30px;
        height: 30px;
    }

    /* 3. Service cards mobile fixes - Remove stacking, make simple grid */
    #cards {
        display: block; /* Remove grid layout */
        grid-template-rows: none;
        gap: 2rem;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .card {
        position: relative; /* Remove sticky positioning */
        padding-top: 0; /* Remove variable top padding */
        margin-bottom: 2rem;
    }

    .service-card {
        flex-direction: column;
        height: auto; /* Remove fixed height */
        position: relative; /* Ensure no sticky behavior */
    }

    .service-info {
        order: 2;
        padding: 2rem;
    }

    .service-image {
        order: 1;
        height: 250px;
        flex: none;
    }

    .service-image-inner {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100%;
    }

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

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    margin-bottom: 2rem;
    width: 200px;
    height: auto;
}

.loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(90, 228, 247, 0.3);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Cursor Effects */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: rgba(90, 228, 247, 0.1);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

/* Hover Effects */
a:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--primary-blue);
}

button:hover ~ .cursor {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--primary-blue);
}