:root {
    --bg-color: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-accent: #00d4ff;
    --secondary-accent: #7b2ff7;
    --text-main: #e0e0e0;
    --text-heading: #ffffff;
    --text-dim: #a0a0a0;
    --neon-green: #00ff88;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* --- Particles Background --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

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

section {
    padding: 10rem 0; /* Deep breathability */
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 7rem; /* Increased for airy feel */
    position: relative;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-heading);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 900;
}

.hero-visual-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

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

.profile-frame {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 4px solid var(--glass-border);
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.frame-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-accent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Creative Name Display --- */
.name-container {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-tag-label {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--primary-accent);
    letter-spacing: 0.5em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 1rem;
    border-radius: 4px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.1); /* Subtle outline look */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0;
    line-height: 1;
}

.hero-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--text-heading);
    -webkit-text-stroke: 0;
    overflow: hidden;
    border-right: 3px solid var(--primary-accent);
    animation: scan 4s linear infinite;
    white-space: nowrap;
    filter: drop-shadow(0 0 10px var(--primary-accent));
}

@keyframes scan {
    0%, 10% { width: 0; }
    70%, 90% { width: 100%; }
    100% { width: 0; }
}

.hero-name::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-accent);
    margin: 0.8rem auto;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-family: var(--font-code);
}

.typewriter-text {
    color: var(--primary-accent);
    font-weight: 600;
}

.typewriter-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-heading);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--card-bg);
}

/* --- Glass Cards --- */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3.5rem; /* Luxe padding */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* --- Pipeline Section --- */
.pipeline-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.pipeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pipeline-icon {
    width: 70px;
    height: 70px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pipeline-item:hover .pipeline-icon {
    transform: scale(1.1);
    background: var(--primary-accent);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.pipeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pipeline-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.pipeline-connector {
    flex: 0.2;
    height: 2px;
    background: var(--glass-border);
    margin-top: 35px;
    position: relative;
}

.pipeline-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-accent);
    transition: width 0.5s ease;
}

.pipeline-item.active + .pipeline-connector::after {
    width: 100%;
}

/* --- Project Mockups --- */
.project-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.project-mockup {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card:hover .project-mockup img {
    transform: scale(1.1);
}

.mockup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-color));
    opacity: 0.8;
}

.project-info {
    padding: 2rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

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

.project-link:hover {
    gap: 0.8rem;
}

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

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-accent);
    font-family: var(--font-code);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skills-cloud .tech-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    cursor: help;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.skills-cloud .tech-tag:hover {
    background: var(--primary-accent);
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.skills-cloud .tech-tag::before {
    content: attr(data-info);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    border: 1px solid var(--primary-accent);
}

.skills-cloud .tech-tag:hover::before {
    opacity: 1;
    visibility: visible;
}

.tech-tag.expert { border-left: 3px solid var(--neon-green); }
.tech-tag.advanced { border-left: 3px solid var(--primary-accent); }

/* --- Magnetic Buttons --- */
.magnetic {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-accent);
    display: block;
}

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

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-accent);
    border-radius: 50%;
    left: 13px;
    top: 0;
    box-shadow: 0 0 10px var(--primary-accent);
}

.timeline-date {
    color: var(--primary-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

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

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

.project-card {
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1a1a25;
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.tech-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-accent);
    border-radius: 50px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

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

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-accent);
}

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s, visibility 0.6s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Active Nav --- */
.nav-links a.active {
    color: var(--primary-accent);
}

/* --- Education Grid --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem; /* Increased gap */
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem; /* Increased gap */
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text-side { order: 2; }
    .hero-image-side { order: 1; }
    .profile-frame { width: 250px; height: 250px; }
    .pipeline-container { flex-direction: column; align-items: center; }
    .pipeline-connector { width: 2px; height: 40px; margin: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-name { font-size: 2rem; letter-spacing: 0.08em; }
    .name-tag-label { font-size: 0.6rem; }
    .hero-subtitle { font-size: 1rem; }

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1000;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.3rem; }

    .contact-container { grid-template-columns: 1fr; }
    .education-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    section { padding: 5rem 0; }
    .glass-card { padding: 1.5rem; }
}
