/* CSS Variables for easy customization */
:root {
    --primary-color: #06b6d4;
    --primary-dark: #0891b2;
    --secondary-color: #3b82f6;
    --dark-bg: #1e293b;
    --dark-bg-light: #334155;
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
header {
    background: var(--dark-bg);
    color: white;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

nav strong {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

nav strong a {
    font-size: 1.35rem;
    margin-left: 0;
    color: white;
    text-decoration: none;
}

nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav a:hover {
    color: white;
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
    background: none;
    border: none;
    outline: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #0f1729 50%, #1a1f35 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, transparent 0%, rgba(6, 182, 212, 0.03) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    position: relative;
    line-height: 1.1;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
    position: relative;
    color: var(--primary-color);
}

.hero .experience {
    font-size: 1.25rem;
    opacity: 0.75;
    font-weight: 400;
    position: relative;
    margin-bottom: 2rem;
}

.hero-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    position: relative;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.hero-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--primary-color);
}

.hero-link svg {
    width: 20px;
    height: 20px;
}

.hero-link.contact-link {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.hero-links.contact-links {
    justify-content: flex-start;
    margin-top: 1.5rem;
}

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

/* Section Cards */
.section {
    background: var(--bg-white);
    padding: 3.5rem;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: none;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    scroll-margin-top: 5rem;
}

.section:hover {
    border-color: var(--primary-color);
}

h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

/* About Section */
#about p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 0;
}

#about p + p {
    margin-top: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-bottom: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.625rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--primary-color);
    border: 2px solid var(--bg-white);
}

.timeline-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.timeline-item .position {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.375rem;
    font-size: 1.125rem;
}

.timeline-item .date {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.tech-category:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.tech-category h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.tech-category .tech-list {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9375rem;
}

/* Project Card */
.project-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-dark);
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.project-tech span {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Education Card */
.education-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
    transition: var(--transition);
}

.education-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-dark);
}

.education-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.education-card .degree {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.education-card .university {
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.education-card .year {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.education-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 0;
}

/* Languages */
.languages {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.language-item {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    flex: 1;
    min-width: 200px;
}

.language-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-dark);
}

.language-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.language-item span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: block;
}

/* Special styles for legal pages */
h1 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
}

h3:first-of-type {
    margin-top: 0;
}

.section p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.8;
}

.section p + p,
.section p + h2,
.section p + h3 {
    margin-top: 1rem;
}

.section h2 + p,
.section h3 + p {
    margin-top: 0;
}

.section ul {
    margin-top: 1rem;
    margin-bottom: 0;
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.section li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}

.section li:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.375rem;
    }

    .hero .experience {
        font-size: 1rem;
    }

    .hero-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-link {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-links.contact-links {
        align-items: stretch;
    }

    .hero-link.contact-link {
        max-width: none;
    }

    nav {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: 0;
        top: 72px;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        margin: 0;
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a::after {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
        margin: 3rem auto;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1rem;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }

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

    .tech-category {
        padding: 1.5rem;
    }

    .project-card,
    .education-card {
        padding: 1.5rem;
    }

    .language-item {
        padding: 1.25rem 1.5rem;
    }

    .languages {
        flex-direction: column;
    }

    .language-item {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.125rem;
    }

    nav strong {
        font-size: 1.125rem;
    }

    nav a {
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .project-card,
    .education-card,
    .tech-category {
        padding: 1.25rem;
    }

    .language-item {
        padding: 1rem 1.25rem;
    }
}
