@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Dark Theme (Default) */
    --bg-main: #020617;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.1);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.1);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Hero & About Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Reduced top padding to shift content up */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    transform: translateY(-40px); /* Shift the entire container up */
}
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the photo fills the box without stretching */
    border-radius: 40px; /* Matches the box curvature */
}
.hero-image-wrapper {
    perspective: 1000px;
       transform: translateY(-100px);
}

.hero-photo-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-surface), var(--primary-glow));
}

.placeholder-content {
    text-align: center;
    z-index: 2;
}

.initials {
    font-size: 8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.decorative-blob {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    animation: float 10s ease-in-out infinite;
    z-index: 1;
}

.hero-content {
    opacity: 0;
}

.sub-greeting {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.main-name {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.main-name .highlight {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 600px;
}

.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.badge {
    padding: 6px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.badge:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: var(--accent);
}

/* Floating Elements (Scribbles) */
.scribble {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    z-index: -1;
    filter: blur(0.5px);
    animation: float 6s ease-in-out infinite;
}

.scribble1 { top: 10%; left: 5%; animation-duration: 7s; }
.scribble2 { top: 20%; right: 10%; animation-duration: 9s; animation-delay: 1s; }
.scribble3 { top: 40%; left: 85%; animation-duration: 6s; animation-delay: 0.5s; }
.scribble4 { top: 60%; right: 5%; animation-duration: 8s; }
.scribble5 { top: 75%; left: 15%; animation-duration: 7.5s; animation-delay: 2s; }
.scribble6 { top: 85%; right: 20%; animation-duration: 6.5s; }
.scribble7 { top: 30%; left: 25%; animation-duration: 10s; }
.scribble8 { top: 50%; right: 35%; animation-duration: 5.5s; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

/* Animation reveal states */
.animate-up, .animate-slide-up, .hero-content {
    opacity: 0;
    transition: var(--transition);
}

.animate-up.visible {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 1;
}

.animate-slide-up.visible {
    animation: slideInFromBottom 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 1;
}

.animate-left, .animate-right {
    opacity: 0;
    transition: var(--transition);
}

.animate-left.visible {
    animation: slideInFromLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1;
}

.animate-right.visible {
    animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 1;
}

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-content.visible {
    animation: fadeInUp 0.8s ease forwards 0.3s;
    opacity: 1;
}

@media (max-width: 768px) {
    header {
        gap: 15px;
    }
}

/* Header refinements */
header.glass:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--accent-glow);
}

.light header.glass:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .status-badges, .hero-cta {
        justify-content: center;
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Sections */
section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.project-card {
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.project-stack {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.project-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 20px;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

/* Impact Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.metric-card {
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    transition: var(--transition);
}

.metric-card h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Why Hire Me */
.hire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.hire-item {
    text-align: center;
    padding: 20px;
}

.hire-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hire-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hire-item p {
    color: var(--text-secondary);
}

/* 30 Day Plan */
.plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.plan-step {
    display: flex;
    gap: 30px;
    padding: 30px;
    border-radius: 24px;
    align-items: center;
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    font-family: 'Outfit', sans-serif;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
    padding: 100px 5%;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
    border-radius: 40px;
}

.contact-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Footer & Back to Top */
footer {
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 10px 20px var(--primary-glow);
}

#backToTopBtn:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

@media (max-width: 768px) {
    .plan-step {
        flex-direction: column;
        text-align: center;
    }
    .contact-card {
        padding: 40px 20px;
    }
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Shift nav and actions to the right */
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: var(--transition);
    gap: 40px; /* Space between nav and actions */
}

.empty-div {
    display: none; /* Removed logo, so this is just a placeholder if needed */
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1050;
    transition: 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .full-name {
        display: none;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
