/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary: #0B1E3B;
    /* Darker blue */
    --accent: #FF00FF;
    /* Magenta */
    --text: #8892b0;
    /* Light blue text */
    --light: #ccd6f6;
    --spacing: clamp(3rem, 6vw, 6rem);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--primary);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--light);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(4rem, 6vw, 5rem) !important;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Layout */
section {
    min-height: 100vh;
    padding: var(--spacing);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Full-width image sections */
.section-image {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.section-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 30, 59, 0), rgba(11, 30, 59, 0.8));
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1920/1080') center/cover;
    opacity: 0.2;
    z-index: 1;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 0, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.25);
}

.profile-image {
    width: 33%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.profile-text {
    width: 67%;
    padding-left: 2rem;
}

/* Feature Sections */
.feature-section {
    width: 100%;
    background: rgba(255, 0, 255, 0.08);
    padding: 3rem 1rem; /* Add padding to prevent edge clipping */
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 0, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container to limit width */
.feature-container {
    max-width: 1200px; /* Keeps content centered */
    width: 100%;
    padding: 0 1rem; /* Small padding for smaller screens */
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

/* Individual Feature Step */
.feature-grid div {
    background: rgba(255, 0, 255, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* About Section */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.credentials {
    margin: 2rem 0;
}

.credentials li {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.credentials li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

/* Expertise Cards */
.expertise-grid {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    margin: 2rem 0;
    justify-content: space-between;
}

.expertise-card {
    background: rgba(255, 0, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.25);
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ensure images are the same size */
.expertise-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 2rem;
    border-radius: 8px;
}

/* Testimonial section */
#testimonials {
    padding: var(--spacing);
}

.testimonials-container {
    background: rgba(255, 0, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.25);
    padding: 2rem;
    margin: 2rem 0;
}

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

.testimonial-card {
    background: rgba(11, 30, 59, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.15);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.8;
    line-height: 1;
}

.quote-mark {
    color: var(--accent);
    font-size: 2.5rem;
    height: 30px;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--light);
    line-height: 1.6;
    font-size: 1.1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-divider {
    height: 1px;
    background: rgba(255, 0, 255, 0.2);
    width: 100%;
    margin: 1rem 0;
}

.testimonial-client {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.client-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.client-details {
    display: flex;
    flex-direction: column;
}

.client-name {
    color: var(--light);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.client-title {
    font-size: 0.9rem;
    color: var(--text);
}

/* Case Studies */
.case-study {
    margin: 6rem 0;
    max-width: 1200px;
}

.case-study-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    background: rgba(11, 30, 59, 0.8);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.nav a {
    color: var(--light);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

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

/* CTA Button */
.cta {
    display: inline-block;
    padding: 1.5rem 3rem;
    margin-top: 2rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.cta:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: translateY(-2px);
}

/* Patents Section */
.patents {
    background: rgba(255, 0, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 0, 255, 0.25);
}

.patents ul {
    list-style: none;
    margin-top: 1rem;
}

.patents li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.patents li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Awards Banner */
.awards {
    padding: 1.5rem;
    background: rgba(255, 0, 255, 0.1);
    text-align: center;
    font-size: 1.1rem;
    color: var(--light);
}

/* IMPROVED FOOTER STYLES */
footer {
    padding: 4rem 2rem 2rem;
    background: rgba(255, 0, 255, 0.08);
    text-align: center;
    border-top: 1px solid rgba(255, 0, 255, 0.25);
}

footer h3 {
    margin-bottom: 0.5rem;
}

.footer-info {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.footer-info p {
    margin: 0.5rem 0;
}

/* Improved Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
    justify-content: center;
}

.experience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.experience-logo {
    height: 60px;
    width: 180px;
    margin-bottom: 1rem;
    object-fit: contain;
    display: flex;
    justify-content: center;
}

.experience-item p {
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

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

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

.footer-bottom {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Back button for legal pages */
.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
}

.back-button svg {
    margin-right: 0.5rem;
}

/* Policy pages */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.policy-section {
    margin: 2rem 0;
    background: rgba(255, 0, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 0, 255, 0.25);
}

.policy-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Global adjustments */
    :root {
        --spacing: clamp(2rem, 4vw, 4rem);
    }

    /* Typography adjustments */
    h1 {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    /* Navigation */
    .nav {
        width: 100%;
        top: 0;
        right: 0;
        padding: 1rem;
        display: flex;
        justify-content: space-around;
        background: rgba(11, 30, 59, 0.95);
    }

    .nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Profile Section */
    .profile {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .profile-image {
        width: 60%;
        margin-bottom: 1rem;
    }

    .profile-text {
        width: 100%;
        padding-left: 0;
    }

    /* Expertise Grid */
    .expertise-grid {
        flex-direction: column;
        padding: 1rem;
    }

    .expertise-card {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    /* Feature Section */
    .feature-section {
        padding: 2rem 1rem;
    }

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

    /* Testimonial Section */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-client {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .client-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .client-details {
        margin-top: 0.5rem;
    }
    
    /* Adjust image size on mobile for better layout */
    .client-info {
        min-height: auto;
        padding-bottom: 1rem;
    }
    
    .client-info img {
        position: relative;
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
        top: auto;
        left: auto;
    }
    
    .client-info > div {
        margin-left: 0;
    }

    /* Section Images */
    .section-image {
        height: 30vh;
    }

    /* CTA Button */
    .cta {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    /* Patents Section */
    .patents {
        padding: 1rem;
    }

    /* Footer improvements */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Enhanced mobile visibility with subtle glow */
    .expertise-card, 
    .feature-section, 
    .work-item, 
    .patents, 
    .profile,
    .policy-section {
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.15);
    }
}

/* Additional breakpoint for very small devices */
@media (max-width: 480px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav {
        font-size: 0.8rem;
    }

    section {
        padding: 1rem;
    }
}
