:root {
    --primary-color: #C89389;
    --secondary-color: #B07C73;
    --accent-color: #D4A59A;
    --text-primary: #2d2d2d;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --surface: #faf9f8;
    --border: #f2efee;
    --gradient: linear-gradient(135deg, #D4A59A 0%, #C89389 100%);
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

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

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero .links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .links a i {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.hero .links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* General Sections */
.section {
    padding: 4rem 0;
}

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

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-column {
    display: grid;
    gap: 2rem;
}

.skills-column-1 {
    grid-template-rows: 1fr 1fr;
}

.skills-column-2 {
    grid-template-rows: 1fr 1fr 1fr;
}

.skills-column-3 {
    grid-template-rows: 1fr;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-column-1 {
        grid-template-rows: 1fr 1fr 1fr;
    }

    .skills-column-2 {
        grid-template-rows: 1fr 1fr;
    }

    .skills-column-3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-column-1,
    .skills-column-2,
    .skills-column-3 {
        grid-template-rows: none;
    }
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: var(--accent-color);
}

.skill-category p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tech-item i {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--accent-color);
}

/* Experience Section */
.experience-item {
    background: white;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-header .company {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-header .date {
    color: var(--text-light);
    font-style: italic;
}

.project {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.project h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project .challenge,
.project .solution,
.project .impact,
.project .technologies {
    margin: 0.75rem 0;
}

.project .label {
    font-weight: 700;
    color: var(--text-primary);
}

.project .technologies {
    font-style: italic;
    color: var(--text-light);
}

.achievements {
    list-style: none;
    margin: 1rem 0;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievements li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

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

.education-item .institution {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-item .year {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.education-item .details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero .links {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .container {
        padding: 0 1rem;
    }

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

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

/* Apply DM Serif Text to all headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Text', serif;
}