/* -------------------------------------
   CSS Variables & Base Reset
------------------------------------- */
:root {
    /* Color Palette */
    --bg-dark: #09090b;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-1: #0ea5e9;
    --accent-1-light: #38bdf8;
    --accent-2: #8b5cf6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-pad: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* -------------------------------------
   Typography & Reusable Utility
------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--section-pad);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------
   Custom Cursor Glow
------------------------------------- */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
    mix-blend-mode: screen;
}

/* Make custom cursor only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
    body:hover #cursor-glow {
        opacity: 1;
    }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    #cursor-glow { display: none; }
}

/* -------------------------------------
   Navigation
------------------------------------- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-fast);
    padding: 1.5rem 0;
}

#navbar.scrolled {
    padding: 1rem 0;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width var(--transition-smooth);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
}

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

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-links a {
    font-size: 1.2rem;
    font-weight: 600;
}

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

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 10s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -200px;
    left: -150px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 50px) scale(1.1); }
}

.hero-content {
    max-width: 800px;
}

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

.name-title-wrapper {
    display: inline-block;
    opacity: 0;
    /* Delayed entrance animation */
    animation: slideUpFade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

.name-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    display: inline-block;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-size: 200% auto;
}

.name-title:hover {
    transform: translateY(-10px) scale(1.02);
    background-image: linear-gradient(90deg, var(--accent-1-light), #ffffff, var(--accent-2), #ffffff, var(--accent-1-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 2s linear infinite;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.headline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Infinite Scrolling Skills Marquee */
.scrolling-skills-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    overflow: hidden;
    position: relative;
    /* Create faded edges on the left and right */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.scrolling-skills {
    display: flex;
    width: fit-content;
    animation: scrollSkills 15s linear infinite;
}

.scrolling-skills:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.skills-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-right: 1.5rem; /* Ensures the gap is consistent when it repeats */
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    white-space: nowrap;
}

.skills-track span {
    font-weight: 400;
    letter-spacing: 1px;
}

.skills-track .dot {
    color: var(--accent-1-light);
}

@keyframes scrollSkills {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Scrolls exactly half to create seamless loop */
}

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

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #fff;
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

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

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

/* -------------------------------------
   About Section
------------------------------------- */
.about-grid {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.objective-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--accent-1-light);
    margin-bottom: 1rem;
}

.dob-info {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--accent-2);
    border-radius: 4px;
}

.about-divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

.about-text strong {
    color: var(--text-primary);
}

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

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-item i {
    color: var(--accent-1);
}

/* -------------------------------------
   Skills Section
------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--accent-1-light);
}

.category-header h3 {
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

/* -------------------------------------
   Tools Section
------------------------------------- */
.tools-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-chip {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: default;
    backdrop-filter: blur(10px);
}

.tool-chip:hover {
    border-color: var(--accent-1);
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-5px) scale(1.05);
    color: #fff;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.tool-chip i {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.tool-chip:hover i {
    color: var(--accent-1-light);
}

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

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

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 10px;
    width: 18px;
    height: 18px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    margin-bottom: 1.5rem;
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-header h4 {
    font-size: 1.1rem;
    color: var(--accent-1-light);
    font-weight: 500;
}

.duration {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.task-list {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.task-list li {
    position: relative;
    padding-left: 1.5rem;
}

.task-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-2);
}

/* -------------------------------------
   Education Section
------------------------------------- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.edu-card {
    text-align: center;
    padding: 3rem 2rem;
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-1-light);
}

.edu-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--text-secondary);
}

/* -------------------------------------
   Achievements Section
------------------------------------- */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.achievement-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.medal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.5));
}

.medal-icon.silver {
    color: #C0C0C0;
}

/* -------------------------------------
   Training Section
------------------------------------- */
.training-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.training-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.training-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.provider {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.training-date {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .training-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* -------------------------------------
   Work / Projects Section
------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-img-placeholder {
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
}

/* -------------------------------------
   Contact Section
------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent-1-light);
    font-size: 1.2rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    transform: translateX(5px);
}

.social-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.social-btn.email:hover { border-color: var(--accent-1); color: var(--accent-1); }
.social-btn.linkedin:hover { border-color: #0077b5; color: #0077b5; }
.social-btn.instagram:hover { border-color: #E1306C; color: #E1306C; }

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(14, 165, 233, 0.05);
}

.submit-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------
   Footer
------------------------------------- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* -------------------------------------
   Floating WhatsApp Button
------------------------------------- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float-pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    color: white;
}

@keyframes float-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* -------------------------------------
   Animations & Reveals
------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Query for Mobile Navigation */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .timeline::before {
        left: 0;
    }
    .timeline-dot {
        left: -8px;
    }
    .timeline-item {
        padding-left: 30px;
    }
}
