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

:root {
    --primary: #c85a3f;
    --dark: #2d2d2d;
    --light: #f5f5f5;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

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

/* Header & Hero */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #a64a37 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    animation: slideInLeft 0.8s ease;
}

.hero-content h2 {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.contact-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease 0.4s both;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 1;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    animation: slideInLeft 0.8s ease 0.6s both;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

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

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--light);
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* About */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Experience */
.timeline {
    position: relative;
    padding-left: 50px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--light);
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-item .company {
    color: #666;
    margin-bottom: 5px;
}

.timeline-item .date {
    color: #999;
    font-size: 0.9em;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Education */
.education-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.education-card .degree {
    font-weight: 600;
    margin-bottom: 5px;
}

.education-card .details {
    color: #666;
}

.education-card .date {
    color: #999;
    margin-top: 10px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Interests */
.interests-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Awards */
.awards-list {
    max-width: 800px;
    margin: 0 auto;
}

.award-item {
    padding: 15px 0 15px 30px;
    position: relative;
    border-left: 3px solid var(--primary);
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.award-item::before {
    content: '🏆';
    position: absolute;
    left: -15px;
    background: var(--white);
}

.award-item:hover {
    transform: translateX(10px);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-info a,
    .contact-info span {
        font-size: 0.9em;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 10px 15px;
    }

    .timeline {
        padding-left: 30px;
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-5px);
}
