:root {
    --bg-color: #05070a;
    --card-bg: rgba(15, 20, 30, 0.7);
    --primary: #0078d4;
    --secondary: #00f2fe;
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --ms-blue: #00a4ef;
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Cinematic Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #05070a 100%);
    z-index: -2;
}

.stars-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.2;
    animation: drift 100s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

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

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.badge {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.ms-color {
    color: var(--ms-blue);
    font-weight: 600;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Road Journey Section */
.journey-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.road-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 3000px; /* Long enough for scroll journey */
}

.road-svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.car-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: top 0.1s linear;
}

.supercar {
    width: 80px;
    height: 140px;
    position: relative;
    filter: drop-shadow(0 0 35px rgba(0, 120, 212, 0.7));
}

.car-chassis {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0a0a0a, #1a1a1a, #0a0a0a);
    border-radius: 15px 15px 25px 25px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: polygon(20% 0%, 80% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
    overflow: hidden;
}

.car-chassis::before, .car-chassis::after {
    content: "";
    position: absolute;
    top: 15%;
    width: 12%;
    height: 25%;
    background: rgba(0, 120, 212, 0.2);
    border: 1px solid rgba(0, 120, 212, 0.4);
    border-radius: 4px;
}

.car-chassis::before { left: 2%; transform: skewY(-10deg); }
.car-chassis::after { right: 2%; transform: skewY(10deg); }

.cockpit {
    position: absolute;
    top: 22%;
    left: 18%;
    width: 64%;
    height: 38%;
    background: linear-gradient(135deg, #222, #000);
    border-radius: 10px 10px 20px 20px;
    border: 1px solid rgba(0, 120, 212, 0.4);
    box-shadow: inset 0 0 15px rgba(0, 120, 212, 0.2);
}

.spoiler {
    position: absolute;
    bottom: 4%;
    left: 4%;
    width: 92%;
    height: 10px;
    background: linear-gradient(to right, #000, #111, #000);
    border-radius: 3px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.headlights {
    position: absolute;
    top: 4%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.light-beam {
    width: 14px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 30px 12px rgba(255, 255, 255, 0.95), 0 0 60px 20px rgba(0, 120, 212, 0.4);
}

.taillights {
    position: absolute;
    bottom: 6%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
}

.taillights::before, .taillights::after {
    content: "";
    width: 18px;
    height: 5px;
    background: #ff0000;
    border-radius: 2px;
    box-shadow: 0 0 20px 4px rgba(255, 0, 0, 0.8);
}

.milestone {
    position: absolute;
    width: 40%;
    z-index: 5;
}

.milestone-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.year-banner {
    position: absolute;
    top: -25px;
    background: var(--primary);
    color: white;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    box-shadow: 0 4px 10px rgba(0, 120, 212, 0.3);
}

.milestone:nth-child(even) .year-banner {
    right: 40px;
}

.milestone:nth-child(odd) .year-banner {
    left: 40px;
}

.milestone-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.milestone-content h3 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Alternating Milestones */
.milestone:nth-child(even) {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.milestone:nth-child(even) .milestone-dot {
    right: -8px;
}

.milestone:nth-child(odd) {
    right: 0;
    text-align: left;
    padding-left: 40px;
}

.milestone:nth-child(odd) .milestone-dot {
    left: -8px;
}

/* Milestone Positions */
.m0 { top: 2%; }
.m1 { top: 18%; }
.m2 { top: 38%; }
.m3 { top: 58%; }
.m4 { top: 78%; }
.m5 { top: 96%; }

/* Experience Section */
.experience {
    padding: 100px 0;
    background: rgba(0,0,0,0.3);
}

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

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 50px;
}

.exp-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, border-color 0.3s;
}

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

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.company-info i {
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.company-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
}

.company-info span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.date {
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.exp-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.exp-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.exp-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

.tags span {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Skills Section */
.skills {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 50px;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.skill-category i {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.skill-category h4 {
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

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

/* Education & Achievements */
.education {
    padding: 100px 0;
}

.edu-achieve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.edu-card, .achieve-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.edu-card h3, .achieve-card h3 {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.edu-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.cgpa {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.achieve-card ul {
    list-style: none;
}

.achieve-card li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
}

.achieve-card i {
    color: var(--secondary);
    width: 20px;
}

/* Contact Section */
.contact {
    padding: 100px 0 150px;
}

.contact-card {
    background: linear-gradient(135deg, #0f172a, #020617);
    padding: 5rem 4rem;
    border-radius: 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-visual {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 3s cubic-bezier(0.21, 0.53, 0.56, 0.8) infinite;
}

.pulse-ring:nth-child(2) { animation-delay: 1s; }
.pulse-ring:nth-child(3) { animation-delay: 2s; }

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

.loc-icon {
    color: var(--secondary);
    width: 32px;
    height: 32px;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--secondary));
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.location-tag {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-links {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

.contact-item:hover {
    opacity: 0.8;
}

.social-row {
    display: flex;
    gap: 1.5rem;
}

.social-row a {
    color: white;
    transition: transform 0.3s;
}

.social-row a:hover {
    transform: scale(1.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .exp-grid, .edu-achieve-grid { grid-template-columns: 1fr; }
    .milestone { width: 80%; }
    .milestone:nth-child(even), .milestone:nth-child(odd) {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        padding: 0;
        margin-top: 20px;
    }
    .milestone-dot {
        left: 50% !important;
        right: auto !important;
        top: -20px;
        transform: translateX(-50%);
    }
    .contact-card { padding: 2rem; }
    .contact-card h2 { font-size: 2rem; }
}
