
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2ecc71;
    --accent: #f39c12;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --black: #000000;
    --serif: 'Playfair Display', serif;
    --sans-serif: 'Montserrat', sans-serif;
    --shadow: 0 4px 16px rgba(44,62,80,0.08);
    --shadow-lg: 0 10px 30px rgba(44,62,80,0.12);
    --transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    --radius: 18px;
}

body {
    font-family: var(--sans-serif);
    background: linear-gradient(120deg, var(--light) 0%, var(--white) 100%);
    color: var(--dark);
    margin: 0;
    min-height: 100vh;
    transition: var(--transition);
}

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}

.logo {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark);
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

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

.nav-links a:hover {
    color: var(--primary);
}
.nav-links a:hover:after {
    width: 100%;
}

.theme-toggle, .hamburger {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 18px;
    transition: color 0.2s;
}
.theme-toggle:hover, .hamburger:hover {
    color: var(--accent);
}

/* --- Container --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.2;
    color: var(--primary-dark);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 32px;
    color: var(--dark-gray);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 220px;
}

.hero-image img {
    max-width: 320px;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transition: transform 0.3s;
}
.hero-image img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* --- About Section --- */
.section {
    margin: 60px 0;
    padding: 48px 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-title {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 180px;
}

.about-image img {
    max-width: 220px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 4px solid var(--secondary);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transition: transform 0.3s;
}
.about-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-text {
    flex: 2;
    min-width: 260px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.skill {
    background: var(--primary);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    margin-bottom: 6px;
    transition: background 0.2s;
}
.skill:hover {
    background: var(--secondary);
}

/* --- Custom Sections --- */
section:not(.section):not(.contact) {
    background: var(--white);
    color: var(--dark);
    margin: 30px auto 10px auto;
    padding: 25px 30px;
    border-radius: var(--radius);
    max-width: 700px;
    box-shadow: var(--shadow);
}
section:not(.section):not(.contact) h2 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.5em;
}
section:not(.section):not(.contact) ul,
section:not(.section):not(.contact) ol {
    margin: 10px 0 10px 20px;
}
section:not(.section):not(.contact) li {
    margin-bottom: 7px;
    font-size: 1.08em;
}
section:not(.section):not(.contact) p {
    color: var(--dark-gray);
}

/* --- Projects Section --- */
.projects-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.03);
}

.project-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.project-description {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.tech {
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Contact Section --- */
.contact-content {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 32px;
}

.contact-info {
    flex: 1;
    min-width: 220px;
}

.contact-details {
    margin-top: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.contact-icon {
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow);
}

.contact-form {
    flex: 1;
    min-width: 260px;
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-dark);
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    font-size: 1rem;
    background: var(--white);
    color: var(--dark);
    transition: border 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    outline: none;
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s, transform 0.2s;
}
.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px) scale(1.04);
}

/* --- Footer --- */
footer {
    background: var(--white);
    padding: 32px 0 16px 0;
    box-shadow: var(--shadow);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.social-links {
    display: flex;
    gap: 18px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
}
.social-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.copyright {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 8px;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content,
    .projects-grid {
        flex-direction: column;
        gap: 32px;
    }
    .container {
        padding: 0 12px;
    }
    .project-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .hero-title, .section-title {
        font-size: 1.5rem;
    }
    .hero-image img, .about-image img {
        max-width: 140px;
        height: 140px;
    }
    .section, section:not(.section):not(.contact) {
        padding: 16px 6px;
    }
    .project-image img {
        height: 120px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 1rem;
    }
}