:root {
    --primary: #0a0e27;
    --secondary: #1a1f3a;
    --accent: #e8b870;
    --accent-bright: #f4d19b;
    --text: #e4e4e7;
    --text-muted: #94969c;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 110px;
}


.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

.bg-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 184, 112, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.bg-decoration::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}


nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 184, 112, 0.1);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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


.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    z-index: 1;
    margin-top: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.hero-label {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(232, 184, 112, 0.1);
    border: 1px solid rgba(232, 184, 112, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(232, 184, 112, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 184, 112, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(232, 184, 112, 0.3);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(232, 184, 112, 0.1);
    transform: translateY(-3px);
}


section {
    position: relative;
    padding: 8rem 5%;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(232, 184, 112, 0.1);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(26, 31, 58, 0.5);
    border: 1px solid rgba(232, 184, 112, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(232, 184, 112, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
}

.skill-card:nth-child(2) .skill-icon {
    background: var(--gradient-2);
}

.skill-card:nth-child(3) .skill-icon {
    background: var(--gradient-3);
}

.skill-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.skill-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 0.9rem;
    background: rgba(232, 184, 112, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

 .project-card {
            background: var(--secondary);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            font-family: 'Playfair Display', serif;
        }
        
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        
        .project-content {
            padding: 20px;
        }
        
        .project-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            color: #333;
        }
        
        .project-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 15px;
            background-color: #eee;
        }
        
        .project-description {
            color: #666;
            margin-bottom: 15px;
            font-size: 0.95rem;
        }
        
        .tech-badges3 {
            margin-bottom: 15px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        .tech-badge3 {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        
        .html-badge2 {
            background-color: #e0f2fe;
            color: #0369a1;
        }
        
        .css-badge2 {
            background-color: #f3e8ff;
            color: #7e22ce;
        }
        
        .js-badge2 {
            background-color: #fef9c3;
            color: #a16207;
        }
        
        .react-badge2 {
            background-color: #fee2e2;
            color: #b91c1c;
        }
        
        .node-badge2 {
            background-color: #dcfce7;
            color: #166534;
        }
        
        .full-badge {
            background-color: #c0cdf8;
            color: #3323e6;
        }
        
        .project-buttons {
            display: flex;
            gap: 10px;
        }
        
        .project-button {
            flex: 1;
            padding: 10px;
            text-align: center;
            text-transform: uppercase;
            font-weight: 600;
            font-size: 0.85rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            background: linear-gradient(45deg, #3b82f6, #8b5cf6);
            color: white;
            box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
        }
        
        .project-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(59, 130, 246, 0.4);
        }
        
        .project-button:active {
            transform: translateY(0);
        }
.project-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #9fb3ff;
}

/* Contact */
.contact {
    padding: 6rem 5% 4rem;
    position: relative;
    z-index: 1;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.contact-form-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 184, 112, 0.1);
}

.contact-form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-card label {
    display: block;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 184, 112, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
    color: var(--text-muted);
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(232, 184, 112, 0.1);
}

.contact-form-card textarea {
    min-height: 150px;
    resize: vertical;
}

#sub {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sub:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(232, 184, 112, 0.4);
}

#sub:active {
    transform: translateY(0);
}


.contact-info-card {
    background: var(--secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(232, 184, 112, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}


.contact-info-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(232, 184, 112, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(232, 184, 112, 0.05);
    border-color: rgba(232, 184, 112, 0.3);
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 184, 112, 0.1);
    border-radius: 12px;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}


@media (max-width: 1024px) {
    .contact {
        padding: 4rem 3%;
    }
    
    .contact-container {
        gap: 2rem;
        margin-left: -20px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 5%;
    }
    
    .contact-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-left: -15px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .contact-form-card h2,
    .contact-info-card h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .contact-item:hover {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 2rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0 0.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
        margin: 0 auto;
    }
    
    .contact-form-card h2,
    .contact-info-card h2 {
        font-size: 1.3rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        min-width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .contact-details {
        width: 100%;
    }
}

footer {
    position: relative;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(232, 184, 112, 0.1);
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

.social-link img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 5%;
        right: 5%;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem;
        background: rgba(10, 14, 39, 0.98);
        border: 1px solid rgba(232, 184, 112, 0.18);
        border-radius: 18px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(14px);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 0.95rem 0.75rem;
    }

    .nav-links li + li {
        border-top: 1px solid rgba(232, 184, 112, 0.08);
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
}


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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
