:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #c9a96e;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-alt: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-lighter: #95a5a6;
    --background-light: #fafbfc;
    --background-white: #ffffff;
    --background-grey: #f8f9fa;
    --shadow-soft: 0 4px 12px rgba(44, 62, 80, 0.08);
    --shadow-medium: 0 10px 30px rgba(44, 62, 80, 0.12);
    --shadow-strong: 0 20px 40px rgba(44, 62, 80, 0.15);
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition-speed: 0.3s;
    --transition-bounce: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Section Styling */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    box-shadow: var(--shadow-soft);
    border-bottom-color: #eee;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--background-white);
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(201, 169, 110, 0.1) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -2px;
}

.hero h1 span {
    display: inline-block;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--accent-color);
    color: var(--background-white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) var(--transition-bounce);
    font-weight: 600;
    box-shadow: var(--shadow-medium);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #b8956b;
    box-shadow: var(--shadow-strong);
}

/* About Section */
#about {
    background: var(--background-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transform: rotate(-3deg);
    transition: all var(--transition-speed) ease;
}

.about-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

.about-text {
    font-size: 1.1em;
    color: var(--text-light);
}

.about-text h3 {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Education Section */
#education {
    background: var(--background-grey);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    padding-right: 50px;
    left: 0;
}

.timeline-item:nth-child(even) {
    padding-left: 50px;
    left: 50%;
}

.timeline-content {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid var(--accent-color);
    top: 20px;
    z-index: 1;
    transition: transform var(--transition-speed) ease;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
    transform: translateX(50%);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    transform: translateX(-50%);
}

.timeline-item:hover::after {
    transform: scale(1.2) translateX(50%);
}

.timeline-item:nth-child(even):hover::after {
    transform: scale(1.2) translateX(-50%);
}

.timeline-date {
    position: absolute;
    top: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 100%;
    margin-right: 25px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 100%;
    margin-left: 25px;
}

.timeline-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-institution {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    font-size: 0.95em;
}

/* Contact Section - Enhanced */
#contact {
    background: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(201, 169, 110, 0.1) 100%);
    pointer-events: none;
}

#contact .section-title,
#contact .section-title::after {
    color: white;
    background: white;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.contact-intro h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-intro p {
    font-size: 1.1em;
    opacity: 0.9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: all var(--transition-speed) ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    background: #b8956b;
}

.contact-icon i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.contact-info {
    position: relative;
    z-index: 1;
}

.contact-info h4 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.contact-info p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.contact-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    transition: all var(--transition-speed) ease;
    font-size: 0.9em;
}

.contact-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.contact-cta {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-cta h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.cta-button-secondary {
    display: inline-block;
    padding: 14px 35px;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    transition: all var(--transition-speed) var(--transition-bounce);
    font-weight: 700;
    font-size: 1em;
}

.cta-button-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: #a0a0b8;
    padding: 40px 0;
    text-align: center;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    .section-title { font-size: 2.2em; }
    .hero h1 { font-size: 3em; }
    .hero p { font-size: 1.2em; }

    .menu-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        box-shadow: var(--shadow-soft);
    }
    
    .nav-links.active {
        max-height: 500px;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links a:hover { 
        color: var(--primary-color); 
    }
    
    .nav-links a::after { 
        display: none; 
    }
    
    .education-timeline::before { 
        left: 20px; 
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        left: 0;
    }
    
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: -10px;
        transform: translateX(50%);
    }
    
    .timeline-item:hover::after,
    .timeline-item:nth-child(even):hover::after {
        transform: scale(1.2) translateX(50%);
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 0 10px 0;
        text-align: left;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 25px;
    }

    .contact-cta {
        padding: 30px 20px;
    }
}