:root {
    --bg-base: #0a0a0a;
    --text-primary: #e5e5e5;
    --text-secondary: #a3a3a3;
    --accent: #d4af37;
    /* Sophisticated Gold */
    --border-color: #262626;
    --spacing-unit: 20px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    padding: 60px 20px;
    max-width: 950px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    body {
        padding: 40px 20px;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 600px) {
    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    filter: grayscale(20%);
}

.brand h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.brand p {
    font-size: 1.1rem;
    color: var(--accent);
    font-style: italic;
}

.contact-top {
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .contact-top {
        text-align: left;
    }
}

.contact-top a:hover {
    color: var(--accent);
}

/* Sections */
section {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* Content */
.intro-text {
    font-size: 1.15rem;
    color: var(--text-primary);
    max-width: 800px;
    white-space: pre-line;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
}

.skill-item img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1) sepia(100%) saturate(500%) hue-rotate(5deg) brightness(0.85);
    /* Gold tint */
}

.skill-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Education */
.edu-item {
    margin-bottom: 30px;
    border-left: 1px solid var(--border-color);
    padding-left: 25px;
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

.edu-item .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.edu-item .inst {
    font-weight: 600;
    font-size: 1.1rem;
}

.edu-item .detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.socials a {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid transparent;
}

.socials a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1) sepia(100%) saturate(500%) hue-rotate(5deg) brightness(0.85); /* Gold tint */
}

.socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

section {
    animation: fadeIn 0.8s ease-out forwards;
}