:root {
    --bg-color: #0b0a15;
    --bg-secondary: #12101e;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-color: #8b5cf6; /* Deep Violet */
    --primary-hover: #a78bfa;
    --secondary-color: #06b6d4; /* Cyan/Teal */
    --accent-color: #3b82f6;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0a15 70%);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background Canvas */
#neuralCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

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

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.center {
    text-align: center;
}

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

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
    position: relative;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    transition: opacity 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.w-100 {
    width: 100%;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 10, 21, 0.8);
    backdrop-filter: blur(16px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.logo .domain {
    color: var(--secondary-color);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

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

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Header */
#home {
    align-items: center;
    text-align: center;
    padding-bottom: 160px; /* Ensures content does not overlap the absolute scroll indicator */
}

.header-content {
    max-width: 850px;
    z-index: 2;
}

.pre-heading {
    color: var(--secondary-color);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    z-index: 5;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%; /* Focus on the face, avoids chopping the top */
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(139, 92, 246, 0.5);
    padding: 6px; /* Creates a nice padded gap inside the ring */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: rgba(11, 10, 21, 0.5);
}

.profile-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(139, 92, 246, 0.4) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

.header-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.typewriter-container {
    height: 40px;
    margin-bottom: 25px;
}

.header-content h2 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 300;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

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

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

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

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 25px;
}

.mind-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mind-cards .glass-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mind-cards .glass-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.mind-cards .glass-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.mind-cards .glass-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes floatReverse {
    0% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0px); }
}

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

.floating.reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(139, 92, 246, 0.1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-color: rgba(6, 182, 212, 0.3);
}

.skill-card i {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.skill-card:hover i {
    color: var(--secondary-color);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

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

/* Education Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.5), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.timeline-item.left::after { right: -8px; }
.timeline-item.right::after { left: -8px; }

.timeline-content {
    padding: 35px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-family: var(--font-main);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content .date {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.timeline-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: #fff;
}

/* Contact */
.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    padding: 15px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

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

.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--font-main);
    border-radius: 12px;
    transition: all 0.3s;
}

.input-group textarea {
    resize: vertical;
    min-height: 150px;
}

.input-group label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: var(--secondary-color);
    background: var(--bg-secondary);
    padding: 0 5px;
    border-radius: 4px;
}

/* Footer */
footer {
    padding: 40px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-logo span {
    color: var(--secondary-color);
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .header-content h1 { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 20px; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-item.left::after, .timeline-item.right::after { left: 32px; }
}

@media (max-width: 768px) {
    .header-content h1 { font-size: 3.2rem; }
    .header-content h2 { font-size: 1.4rem; }
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(11, 10, 21, 0.98);
        flex-direction: column;
        gap: 0;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    .nav-links.active {
        max-height: 350px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .mobile-menu-btn { display: block; }
    .header-buttons { flex-direction: column; }
    .section { padding: 80px 0; }
}
