/* Root Variables - Professional Business/Finance Theme */
:root {
    /* Base colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-tertiary: #eef1f5;

    /* Text colors */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;

    /* Professional accent colors */
    --navy-primary: #1a365d;
    --navy-dark: #0f2744;
    --navy-light: #2c5282;
    --gold-accent: #b7934c;
    --gold-light: #d4a84b;
    --slate-accent: #475569;

    /* Legacy variable mappings for compatibility */
    --ferrari-red: var(--navy-primary);
    --ferrari-red-dark: var(--navy-dark);
    --madrid-gold: var(--gold-accent);
    --navy-blue: var(--navy-primary);

    /* Accent gradients */
    --accent-gradient: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);

    /* Card styling */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.1);

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --card-bg: #1e293b;
    --card-border: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.4);
    --navy-primary: #60a5fa;
    --gold-accent: #d4a84b;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 35, 66, 0.95);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 0.9375rem;
}

.nav-links a:hover {
    color: var(--ferrari-red);
}

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

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

.theme-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--card-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--ferrari-red);
    border-color: var(--ferrari-red);
}

.theme-toggle:hover svg {
    color: white;
}

.theme-toggle svg {
    color: var(--text-primary);
}

.sun-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7f8fa 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e293b 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 54, 93, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 184, 28, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    flex: 1;
}

.hero-image {
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.hero-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: block;
}

[data-theme="dark"] .hero-image img {
    border-color: var(--bg-tertiary);
}

.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(26, 54, 93, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
    color: var(--navy-blue);
}

[data-theme="dark"] .hero-title {
    color: var(--text-primary);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s;
    animation-fill-mode: both;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.6s;
    animation-fill-mode: both;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--ferrari-red);
    border: 2px solid var(--ferrari-red);
}

.btn-secondary:hover {
    background: var(--ferrari-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-links {
    display: flex;
    gap: 1.25rem;
    animation: fadeInUp 0.8s ease 0.8s;
    animation-fill-mode: both;
}

.social-links a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    border: 2px solid var(--card-border);
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: transparent;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    color: var(--navy-blue);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.9;
}

.about-text strong {
    color: var(--ferrari-red);
    font-weight: 700;
}

.about-education {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

.about-education h3 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    color: var(--navy-blue);
}

[data-theme="dark"] .about-education h3 {
    color: var(--text-primary);
}

.education-item {
    margin-bottom: 1.75rem;
}

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

.education-item h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.education-item .degree {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.education-item .date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Experience Section - New Grid Layout */
.experience {
    background: var(--bg-primary);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.experience-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ferrari-red);
}

.company-logo {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.bcg-logo, .ugf-logo, .nomura-logo {
    background: transparent;
    border: none;
}

.experience-info h3 {
    font-size: 1.375rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

[data-theme="dark"] .experience-info h3 {
    color: var(--text-primary);
}

.experience-info h4 {
    font-size: 1.0625rem;
    color: var(--ferrari-red);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.experience-info .location {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.experience-info .timeline-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--madrid-gold);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.project-card h3 {
    font-size: 1.375rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

[data-theme="dark"] .project-card h3 {
    color: var(--text-primary);
}

.project-tag {
    background: var(--accent-gradient);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

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

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.project-tags span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    border: 1px solid var(--card-border);
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--ferrari-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    margin-top: auto;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--ferrari-red-dark);
    transform: translateX(4px);
}

/* Skills Section */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.375rem;
    color: var(--navy-blue);
    margin-bottom: 1.75rem;
    font-weight: 800;
}

[data-theme="dark"] .skill-category h3 {
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.skill-tags span {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    font-weight: 600;
}

.skill-tags span:hover {
    background: var(--accent-gradient);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Coursework Section */
.coursework {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

.coursework h3 {
    font-size: 1.75rem;
    color: var(--navy-blue);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 800;
}

[data-theme="dark"] .coursework h3 {
    color: var(--text-primary);
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.course-category h4 {
    font-size: 1.25rem;
    color: var(--ferrari-red);
    margin-bottom: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-category h4::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.course-category ul {
    list-style: none;
    padding-left: 0;
}

.course-category li {
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.course-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--madrid-gold);
    font-weight: bold;
    font-size: 1.125rem;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-personal {
    font-size: 1.0625rem;
    color: var(--text-tertiary);
    margin-bottom: 3rem;
    font-style: italic;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

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

.contact-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--ferrari-red);
}

.contact-card svg {
    color: var(--ferrari-red);
    transition: var(--transition);
}

.contact-card:hover svg {
    transform: scale(1.15);
    color: var(--madrid-gold);
}

.contact-card h3 {
    font-size: 1.125rem;
    color: var(--navy-blue);
    font-weight: 800;
}

[data-theme="dark"] .contact-card h3 {
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--navy-primary);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 3px solid var(--gold-accent);
}

[data-theme="dark"] .footer {
    background: var(--bg-tertiary);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

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

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

    .nav-links {
        display: none;
    }

    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        width: 160px;
        height: 160px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

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

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

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

    .section-title {
        font-size: 2.25rem;
    }

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

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

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

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }
}
