/* 
   Apple-inspired Design System 
   Focus: Typography, Whitespace, Glassmorphism, Premium feel
*/

:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --glass-bg: rgba(22, 22, 23, 0.8);
    --card-bg: #161617;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1.07;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(180deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    /* Navigation horizontal scroll for mobile */
    .nav-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding: 0 15px;
    }
    .nav-content::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .nav-links {
        white-space: nowrap;
        gap: 15px;
        padding-right: 15px;
    }
    .nav-links a {
        font-size: 12px;
    }

    /* Section padding */
    section {
        padding: 60px 15px;
    }
    .full-width-section {
        padding: 60px 15px;
    }

    /* Card adjustments */
    .card {
        padding: 30px 20px !important; /* Override inline styles if any */
        min-height: auto;
    }
    .card h3 {
        font-size: 24px;
    }

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


/* Layout */
section {
    padding: 100px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    justify-content: center;
    background: radial-gradient(circle at center, #1d1d1f 0%, #000 100%);
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Grid Layout for Projects/Expertise */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    width: 100%;
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 28px;
    padding: 60px 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.4s ease;
    min-height: 500px;
}

.card img {
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.card:hover img {
    transform: scale(1.03);
}

.card:hover {
    transform: scale(1.01);
}

.card h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 19px;
    max-width: 400px;
}

.full-width-section {
    width: 100%;
    background-color: #f5f5f7;
    color: #1d1d1f;
    padding: 100px 22px;
    display: flex;
    justify-content: center;
}

.full-width-section .text-gradient {
    background: linear-gradient(180deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    margin-top: 24px;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-link {
    background: none;
    color: var(--accent-color);
    padding: 0;
}

.btn-link::after {
    content: ' >';
}

/* Timeline Section */
.timeline-container {
    max-width: 900px;
    margin: 60px auto;
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.timeline-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-role {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 16px;
    color: #a1a1a6;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 30px;
    }
    .timeline-container::before {
        left: 10px;
    }
    .timeline-dot {
        left: -24px;
    }

    /* General Layout Fixes */
    .grid, .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fix image overflow */
    .card img {
        width: 100% !important;
        margin-left: 0 !important;
        border-radius: 20px !important;
    }

    /* Adjust typography */
    .hero-title {
        font-size: clamp(36px, 10vw, 48px) !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
    
    .section-title {
        font-size: clamp(28px, 6vw, 36px) !important;
    }

    /* Prevent horizontal scrolling on specific sections */
    .full-width-section {
        padding: 60px 15px !important;
        overflow-x: hidden;
    }

    .container {
        padding: 0 10px;
        overflow-x: hidden;
    }
    
    /* Responsive grids in inline styles */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Simulator stats grid fix */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Premium Feedback Form --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    height: 100%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s;
}

.contact-card:hover {
    border-color: rgba(0, 113, 227, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #0077ed;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: #86868b;
    cursor: not-allowed;
    box-shadow: none;
}

.form-status {
    font-size: 14px;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-weight: 500;
    padding: 12px;
    border-radius: 10px;
    animation: fadeIn 0.4s ease;
}

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

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .contact-info {
        text-align: center;
        align-items: center;
    }
    .contact-info h2 {
        text-align: center;
    }
    .contact-info p {
        margin-left: auto;
        margin-right: auto;
    }
}

