﻿:root {
    --bg-color: #1e293b;
    /* Deep Indigo/Slate */
    --bg-secondary: #334155;
    --text-primary: #f5f5dc;
    /* Warm Sand/Beige */
    --text-secondary: #cbd5e1;
    /* Muted Blue-Grey */
    --accent-color: #cc704b;
    /* Terracotta */
    --accent-deep: #9a3412;
    /* Dark Rust */
    --accent-gradient: linear-gradient(135deg, #cc704b 0%, #9a3412 100%);
    --card-bg: rgba(51, 65, 85, 0.6);
    /* Matte Slate */
    --border-color: rgba(245, 245, 220, 0.1);
    /* Subtle Beige */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Subtle Jaali / Lattice Pattern */
    background-image:
        radial-gradient(circle, #f5f5dc 1px, transparent 1px),
        radial-gradient(circle, #f5f5dc 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
}

/* No more spinning mandalas - keeping it clean */
.mandala {
    display: none;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: radial-gradient(circle, var(--accent-deep) 1px, transparent 1.5px);
    background-size: 15px 15px;
    opacity: 0.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    /* Removed diamond */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-color);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.accent {
    color: var(--accent-color);
    /* Fallback */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: white;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(109, 40, 217, 0.1);
    transform: translateY(-3px);
}

.contact-form button:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    min-height: 1.5rem;
    transition: var(--transition);
}

.form-status.success {
    color: #4ade80;
    /* Green */
}

.form-status.error {
    color: #f87171;
    /* Red */
}

.form-status.sending {
    color: var(--text-secondary);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

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

.nav-link {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Header height */
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.glass-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: border-pulse 4s infinite alternate;
}

.display-icon {
    font-size: 8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 8px 32px rgba(204, 112, 75, 0.18));
    transition: filter 0.3s ease;
}

.about-svg:hover {
    filter: drop-shadow(0 12px 40px rgba(204, 112, 75, 0.32));
}

.about-text {
    width: 100%;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-info {
    margin-top: 2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.about-info li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.about-info span {
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 0.5rem;
    min-width: 80px;
    display: inline-block;
}

/* Skills Section */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.skill-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-group::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 16px 0 0 16px;
}

.skill-group:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 112, 75, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-group-header i {
    font-size: 1.4rem;
    color: var(--accent-color);
    width: 36px;
    height: 36px;
    background: rgba(204, 112, 75, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-group-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

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

.skill-tags span {
    font-size: 0.85rem;
    background: rgba(245, 245, 220, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    transition: var(--transition);
    cursor: default;
}

.skill-tags span:hover {
    background: rgba(204, 112, 75, 0.15);
    color: var(--text-primary);
    border-color: rgba(204, 112, 75, 0.4);
}

/* Project Visuals (Icon Fallback) */
.project-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #1e1e2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual i {
    font-size: 4rem;
    color: var(--accent-color);
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-visual::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(204, 112, 75, 0.1) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    z-index: 1;
}

.project-card:hover .project-visual i {
    transform: scale(1.1) rotate(-5deg);
    color: var(--text-primary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #000;
}

.img-placeholder-project {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    background: rgba(109, 40, 217, 0.15);
    color: #a78bfa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-sm:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        margin-top: 2rem;
        order: -1;
        /* Show visual above text on tablets if desired, remove to keep below */
    }

    .description {
        margin-left: auto;
        margin-right: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* Show image above text */
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* --- Section Spacing --- */
    .section {
        padding: 4rem 0;
    }

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

    /* --- Navigation --- */
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

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

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Hero Section --- */
    .hero {
        padding-top: 70px;
        min-height: 100svh;
        /* Use small viewport height for mobile browsers */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .title {
        font-size: 2.4rem;
    }

    .typing-text {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-outline {
        margin-left: 0;
        /* Remove left margin when stacked */
    }

    .hero-visual {
        order: -1;
        /* Show card above text on mobile */
        margin-top: 0;
    }

    .visual-card-wrapper {
        width: min(300px, 80vw);
        height: min(300px, 80vw);
    }

    /* --- About Section --- */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-svg {
        max-width: 320px;
    }

    .about-text h3 {
        font-size: 1.6rem;
    }

    .image-placeholder {
        height: 280px;
    }

    /* --- Skills Section --- */
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* --- Projects Section --- */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    /* --- Contact Section --- */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        padding: 1.8rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {

    /* Extra small phones */
    .container {
        padding: 0 1.2rem;
    }

    .title {
        font-size: 2rem;
    }

    .typing-text {
        font-size: 1.2rem;
    }

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

    .logo {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .visual-card-wrapper {
        width: min(260px, 85vw);
        height: min(260px, 85vw);
    }

    .contact-form {
        padding: 1.4rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}