/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-color: #0A0A0A;
    --surface-color: #1A1A1A;
    --surface-light: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-color: #D4AF37; /* Gold/Champagne */
    --accent-hover: #F3E5AB;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Content Protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow text selection in inputs and textareas */
input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
}

.text-left h2::after {
    left: 0;
    transform: none;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.accent-text {
    color: var(--accent-color);
}

/* =========================================
   COMPONENTS
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-hover);
    transition: var(--transition-fast);
    z-index: -1;
}

.btn-animated:hover::before {
    left: 0;
}

/* =========================================
   NAVBAR (GLASSMORPHISM)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* =========================================
   HERO SECTION (SLIDER)
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content p {
    font-size: 1.3rem;
    color: #E0E0E0;
    margin-bottom: 2rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition-slow);
    display: block;
    margin: 0 auto;
}

.profile-img:hover {
    transform: scale(1.02);
}

/* =========================================
   WHY CHOOSE ME SECTION
   ========================================= */
.why-choose-me {
    background-color: var(--surface-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 20px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.feature-card:hover .icon-wrapper {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* =========================================
   MY SKILLS SECTION
   ========================================= */
.skills {
    background-color: var(--bg-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.skill-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) calc(var(--percent) * 1%), var(--surface-light) 0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: 4px; /* Thickness of the ring */
    border-radius: 50%;
    background-color: var(--bg-color);
}

.progress-circle span {
    position: relative;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-info h3 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.skill-info p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   PORTFOLIO (MASONRY GALLERY)
   ========================================= */
.portfolio {
    background-color: var(--surface-color);
}

.masonry-grid {
    display: flex;
    gap: 20px;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-color);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--surface-color);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-details strong {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-details a {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

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

.input-group {
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 30px 0;
    text-align: center;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

.dev-brand {
    margin-top: 10px !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary);
}

.dev-brand a {
    color: var(--accent-color);
    font-weight: 600;
}

.dev-brand a:hover {
    color: var(--text-primary);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
}

/* =========================================
   ANIMATIONS
   ========================================= */
/* Scroll Fades */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-nav {
    animation: fadeInDown 0.8s ease-out forwards;
}

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

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* =========================================
   TOAST NOTIFICATION
   ========================================= */
.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: var(--surface-color);
    color: var(--text-primary);
    text-align: center;
    border-radius: 8px;
    padding: 16px 24px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--accent-color);
    font-family: var(--font-body);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

.toast.error {
    border-color: #ff4c4c;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 992px) {
    .about-grid, .features-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

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

    .masonry-grid {
        flex-direction: column;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
}
