/* 1. General Settings & Variables */
:root {
    --bg-dark: #0a0a0a; 
    --bg-card: #141414; 
    --text-light: #f5f5f5; 
    --gold-accent: #d4af37; 
    --gold-hover: #f3c93f; 
    --shadow-gold: rgba(212, 175, 55, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}


header {
    background-color: rgba(10, 10, 10, 0.8); 
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); 
    backdrop-filter: blur(10px); 
}

.main-logo {
    height: 70px;
    width: auto; 
    transition: transform 0.3s ease;
    display: block;
}

.main-logo:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-accent);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--gold-accent);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 3. Section Styling */
section {
    padding: 80px 10%;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 2.8rem;
    color: var(--gold-accent);
    margin-bottom: 40px;
    text-align: center;
}

/* 4. About & Skills Section */
.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 850px;
    margin: 0 auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-accent);
    box-shadow: 0 12px 30px var(--shadow-gold);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding-bottom: 12px;
}

.skill-card h3 {
    color: var(--gold-accent);
    font-size: 1.25rem;
}

.skill-list, .main-skill-list {
    list-style: none;
}

.skill-list li, .main-skill-list > li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #bbb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-list li.strong {
    color: var(--text-light);
    font-weight: 600;
}

.gold-icon {
    color: var(--gold-accent);
    margin-right: 10px;
}

/* Sub-list for Database Details */
.sub-skill-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 8px;
    border-left: 1px dashed rgba(212, 175, 55, 0.3);
}

.sub-skill-list li {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
    display: block;
}

.level {
    font-size: 0.65rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-accent);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* 5. Projects Grid Styling */
#projects {
    background-color: var(--bg-card);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-dark);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 35px;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-accent);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.tag {
    font-size: 0.7rem;
    color: var(--gold-accent);
    border: 1px solid var(--gold-accent);
    padding: 3px 12px;
    border-radius: 25px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
}

.project-card h3 {
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-actions {
    margin-top: auto;
    padding-top: 25px;
    display: flex;
    gap: 12px;
}

/* 6. Buttons & Links */
.btn {
    display: inline-block;
    color: var(--gold-accent);
    text-decoration: none;
    border: 1px solid var(--gold-accent);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:hover {
    background-color: var(--gold-accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--gold-accent);
}

/* 7. Contact Section & Footer */
#contact {
    text-align: center;
    background-color: var(--bg-dark);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

footer {
    text-align: center;
    padding: 50px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: #666;
}

/* 8. Gallery Lightbox Slider */
.lightbox-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    z-index: 2000; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
}

.slider-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    gap: 25px;
    position: relative;
}

.slide-content {
    text-align: center;
    flex-grow: 1;
}

.slide-content h3 {
    color: var(--gold-accent);
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.slide-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 1px solid var(--gold-accent);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: var(--gold-accent);
    font-size: 4rem;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.prev-btn:hover, .next-btn:hover {
    color: white;
    transform: scale(1.1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 4rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2100;
}

.close-lightbox:hover {
    color: var(--gold-accent);
    transform: rotate(90deg);
}

/* 9. Mobile Adjustments */
@media (max-width: 768px) {
    section { padding: 60px 5%; }
    h2 { font-size: 2.2rem; }
    
    header { 
        flex-direction: column; 
        gap: 15px; 
        padding: 20px;
    }
    
    .main-logo { height: 50px; }
    
    nav ul { gap: 15px; }
    
    .skills-container { grid-template-columns: 1fr; }
    
    .slider-container { gap: 10px; }
    .prev-btn, .next-btn { font-size: 2.5rem; }
    .close-lightbox { top: 15px; right: 25px; font-size: 3rem; }
}
