/* ============================================
   PALAK SHETH PORTFOLIO - 3D STYLES
   Proper sizing with smooth 3D effects
   ============================================ */

:root {
    --color-bg: #0F0F0F;
    --color-bg-secondary: #1A1A1A;
    --color-bg-tertiary: #2A2A2A;
    --color-text: #E8E4DF;
    --color-text-muted: #A39E93;
    --color-accent: #C8B8A0;
    --color-accent-hover: #D4C5A9;
    
    --gradient-hero: linear-gradient(135deg, #0F0F0F 0%, #1A1A2E 50%, #0F0F0F 100%);
    --gradient-gold: linear-gradient(135deg, #C8B8A0 0%, #D4C5A9 50%, #B8A890 100%);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --section-padding: 5rem;
    --container-max: 1200px;
}

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

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

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
}

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

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

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

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

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    padding: 5rem 2rem;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-greeting {
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.title-line {
    display: block;
}

.title-line:first-child {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 184, 160, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

.hero-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    transition: all 0.3s ease;
    border: 1px solid var(--color-bg-tertiary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--section-padding) 0;
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    max-width: 550px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.about-body {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 1.25rem;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-bg-tertiary);
}

.image-placeholder span {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
}

.frame-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    border-top: 3px solid var(--color-accent);
    border-right: 3px solid var(--color-accent);
    border-radius: 0 14px 0 0;
}

.frame-decoration::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    width: 70px;
    height: 70px;
    border-bottom: 3px solid var(--color-accent);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 0 0 14px;
}

/* ============================================
   PROJECTS SECTION - 3D CARDS
   ============================================ */
.projects {
    background: var(--color-bg-secondary);
    perspective: 2000px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--color-bg-tertiary);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.project-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.project-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.visual-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.ai-ecommerce {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    border-radius: 10px;
}

.ai-ecommerce .chat-bubble {
    position: absolute;
    top: 20%;
    left: 10%;
    background: var(--color-bg);
    padding: 0.6rem 1rem;
    border-radius: 12px 12px 12px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.typing-text {
    font-size: 0.8rem;
    color: var(--color-text);
}

.product-grid {
    position: absolute;
    bottom: 15%;
    right: 10%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.mini-product {
    width: 45px;
    height: 55px;
    background: var(--gradient-gold);
    border-radius: 5px;
    opacity: 0.8;
}

.gold-shop {
    background: linear-gradient(135deg, #2C2416 0%, #1A1510 100%);
    border-radius: 10px;
}

.dashboard-preview {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dash-header {
    height: 28px;
    background: rgba(200, 184, 160, 0.2);
    border-radius: 5px;
}

.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.stat-box {
    height: 45px;
    background: rgba(200, 184, 160, 0.15);
    border-radius: 5px;
}

.dash-chart {
    flex: 1;
    background: linear-gradient(to top, rgba(200, 184, 160, 0.3), transparent);
    border-radius: 5px;
    position: relative;
}

.dash-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #C8B8A0, transparent);
    border-radius: 0 0 5px 5px;
    opacity: 0.5;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    background: var(--color-bg-secondary);
    color: var(--color-accent);
    border-radius: 50px;
    border: 1px solid var(--color-bg-tertiary);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.project-description {
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-features {
    list-style: none;
    margin-bottom: 1.25rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.feature-icon {
    font-size: 1rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.project-link {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-link.primary {
    background: var(--gradient-gold);
    color: var(--color-bg);
}

.project-link.secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-bg-tertiary);
}

.project-link:hover {
    transform: translateY(-2px);
}

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

.skills-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skills-category {
    background: var(--color-bg-secondary);
    padding: 1.75rem;
    border-radius: 14px;
    border: 1px solid var(--color-bg-tertiary);
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-accent);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background: var(--color-bg-tertiary);
}

.skill-icon {
    font-size: 1.5rem;
}

.skill-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}

.skills-visual {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.orbit-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 700px;
}

.orbit-item {
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.orbit-item:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
}

.contact-card {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--color-bg-tertiary);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.contact-icon {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.contact-card a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.form-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-bg-tertiary);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.form-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

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

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.form-success {
    text-align: center;
    padding: 1.5rem;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-bg);
    margin: 0 auto 1rem;
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg);
    padding: 2.5rem 0 1.25rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.footer-socials a svg {
    width: 16px;
    height: 16px;
}

.footer-socials a:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0.15rem 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        min-height: 260px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--color-bg-tertiary);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .skills-category {
        padding: 1.25rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}