/* ====== Theme Variables ====== */
:root {
    --primary-color: #ffcc66;        /* Gold */
    --primary-hover: #ffe08a;        /* Lighter gold */
    --text-light: #f5f5f5;
    --text-dark: #333;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --frosted-bg: rgba(255, 255, 255, 0.2);
    --frosted-border: rgba(255, 255, 255, 0.2);
}

/* ====== Global Reset ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

/* ====== Body ====== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(var(--bg-overlay), var(--bg-overlay)),
                url('bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    padding: 40px 20px;
}

/* ====== Container (Frosted Glass) ====== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--frosted-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 80px;
    border-radius: 8px;
    border: 1px solid var(--frosted-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.6s ease-in-out;
}

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

/* ====== Header ====== */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.name {
    font-size: 2.8em;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

/* ====== Navigation ====== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.nav-links a:hover {
    color: var(--primary-hover);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ====== Main Content ====== */
.main-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    margin-top: 40px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ====== Profile Photo ====== */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255,224,138,0.35), rgba(255,255,255,0.15)),
        url('pp.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ====== Social Links ====== */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ====== Content ====== */
.content {
    flex: 1;
}

.intro-list {
  list-style-type: disc;
  padding-left: 20px;
  color: #eee;
  margin-top: 0.5em;
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.5;
}

/* ====== Section Titles ====== */
.section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 40px;
}

/* ====== Projects ====== */
.featured-projects {
    margin-bottom: 40px;
}

.project-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.project-item:last-child {
    border-bottom: none;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
}

.project-link:hover {
    text-decoration: underline;
}

.project-date {
    color: #ccc;
    font-size: 0.9em;
    margin-left: 10px;
}

.project-description {
    color: #ddd;
    margin-top: 8px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tag {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

/* ====== Skills ====== */
.skills-section {
    margin-top: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-category {
    background-color: rgba(255,255,255,0.15);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.skill-category h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 6px;
    color: #eee;
    font-size: 0.95em;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .sidebar {
        align-items: center;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .content {
        text-align: left;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    .container {
        padding: 30px 20px;
    }

    .name {
        font-size: 2em;
    }

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