/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f1419;
    --primary-light: #1a202c;
    --accent: #00d4ff;
    --accent-dark: #0099cc;
    --text-primary: #0f1419;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --success: #48bb78;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cta-nav {
    padding: 8px 20px;
    border-radius: 6px;
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 600;
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    background: var(--accent-dark);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.125rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-accent {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 16px;
    opacity: 0.1;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   WORK SECTION
   ============================================ */

.work {
    padding: 100px 0;
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.project-date {
    font-size: 0.875rem;
    color: var(--text-light);
    white-space: nowrap;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.experience-section,
.education-section {
    margin-bottom: 50px;
}

.subsection-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.experience-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.exp-role {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.exp-company {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.exp-dates {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.exp-highlights {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.exp-highlights li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.exp-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.education-item {
    margin-bottom: 24px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.edu-degree {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.edu-institution {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.edu-dates {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 4px 0 0 0;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills {
    padding: 100px 0;
    background: var(--bg-white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.skill-category {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    transition: var(--transition);
}

.skill-category:hover {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border) 100%);
    transform: translateY(-4px);
}

.skill-category-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    display: inline-block;
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-badge:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.testimonials .section-header {
    margin-bottom: 60px;
}

.testimonials .section-title {
    color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 16px;
}

.author-name {
    color: var(--bg-white);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.author-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    text-decoration: none;
    display: block;
    padding: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-cta {
    display: flex;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .nav-menu {
        gap: 1.25rem;
        font-size: 0.95rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .nav-menu {
        gap: 0.75rem;
        font-size: 0.875rem;
    }

    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-accent {
        height: 250px;
    }

    .work,
    .about,
    .skills,
    .contact,
    .testimonials {
        padding: 60px 0;
    }

    .projects-grid {
        gap: 16px;
    }

    .project-card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 12px 32px;
        font-size: 1rem;
        width: 100%;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}