/* ===== CSS Variables & Futuristic Theme ===== */
:root {
    /* Colors */
    --bg-primary: #030305;
    --bg-secondary: #080810;
    --bg-tertiary: #0c0c18;

    --text-primary: #ffffff;
    --text-secondary: #c0c0d0;
    --text-muted: #707090;

    /* Futuristic Accents */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-violet: #8b5cf6;
    --glow-color: rgba(6, 182, 212, 0.5);

    /* Functional Colors */
    --accent-primary: var(--accent-cyan);
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(15, 15, 25, 0.6);

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    --bg-gradient: radial-gradient(circle at top right, rgba(11, 24, 60, 0.4), transparent 60%);

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Utilities ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 70px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    /* Futuristic smooth pill shape */
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-3px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

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

/* Background elements for depth */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(165, 180, 252, 0.3));
}

.hero-title {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 28px;
    font-family: var(--font-body);
}

.typing-text {
    color: #fff;
}

.cursor {
    color: var(--accent-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating 3D-like Elements */
.blob {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 50%;
    filter: blur(80px);
    position: absolute;
    animation: pulse-glow 8s infinite alternate;
}

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

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

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    animation: floating 6s ease-in-out infinite;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 15%;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.3);
    animation-delay: 1.5s;
    animation-duration: 7s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
    border-radius: 12px;
    animation-delay: 3s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* ===== Sections ===== */
section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* ===== Glass Card Style (Shared) ===== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-primary);
}

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

.image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    /* Clean futuristic look: subtle glow border */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    filter: grayscale(20%);
}

.image-wrapper:hover .about-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Remove rotation/jagged animations for clean futuristic look */
.image-border {
    display: none;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Skills Section ===== */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.skill-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
    transition: width 1s ease-out;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* ===== Projects Section ===== */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    group: project;
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

/* Subtle, sleek gradients for project placeholders */
.gradient-1 {
    background: radial-gradient(circle at top right, #1d4ed8, #0f172a);
}

.gradient-2 {
    background: radial-gradient(circle at top right, #7c3aed, #0f172a);
}

.gradient-3 {
    background: radial-gradient(circle at top right, #059669, #0f172a);
}

.project-content {
    padding: 32px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover .tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: white;
    color: var(--bg-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
    margin-top: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

/* Using only placeholders now */
.form-group:hover input,
.form-group:hover textarea {
    border-color: rgba(6, 182, 212, 0.5);
}

/* ===== Footer ===== */
.footer {
    padding: 50px 0;
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-visual {
        height: 300px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        max-width: 300px;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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

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

    .hamburger.active .bar {
        background: white;
    }

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

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

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

/* Page Header for specific pages */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100px;
    background: var(--accent-cyan);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}