/* wave function for the HII*/
.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
} 

/* --- Global Styles & Variables --- */
:root {
    --bg-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-color: #007BFF;
    --accent-hover: #0056b3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    cursor: none; /* Hide default cursor */
}

section {
    padding: 100px 10%;
}

h1, h2, h3 {
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s, opacity 0.3s;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    opacity: 0.5;
    transition: transform 0.2s, opacity 0.3s, width 0.3s, height 0.3s;
}
.cursor-grow {
    transform: scale(1.5);
    opacity: 0.8;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    padding: 20px 10%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 30px;
}
nav ul li a {
    font-size: 1rem;
    font-weight: 400;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-content h1 {
    font-size: 4rem;
}
.hero-content .subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 20px auto;
}
.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* --- Work Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.project-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}
.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.project-card p {
    color: #a0a0a0;
    margin-bottom: 20px;
}
.project-links a {
    margin-right: 15px;
    font-weight: 600;
}

/* --- About Section --- */
.about {
    background-color: var(--primary-color);
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.skills {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.skills span {
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 10%;
    background-color: var(--primary-color);
    border-top: 1px solid var(--secondary-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    section { padding: 80px 5%; }
    nav ul { display: none; } /* Simple mobile solution, can be replaced with a hamburger menu */
}
/* Divider Line */
.skills-divider {
    width: 50%;
    height: 1px;
    margin: 40px auto 30px;
    background: linear-gradient(
        to right,
        transparent,
        #4da3ff,
        transparent
    );
}


/* Soft skills title spacing */
.soft-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Soft skills alignment */
.soft-skills {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
/* Tech Stack Container */
.tech-stack {
    display: flex;
    justify-content: center;   /* center tags */
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 18px;
}

/* Tech Tag Style */
.tech-stack span {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
}

/* Hover Effect */
.tech-stack span:hover {
    background: #4da3ff;
    color: #000;
    transform: translateY(-2px);
}

/* EXPERIENCE SECTION */
.experience {
    padding: 80px 10%;
}

/* Timeline container */
.timeline {
    position: relative;
    margin-top: 50px;
    padding-left: 40px;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #4da3ff, transparent);
}

/* Timeline item */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

/* Dot */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: #4da3ff;
    border-radius: 50%;
    position: absolute;
    left: 9px;
    top: 6px;
    box-shadow: 0 0 10px rgba(77, 163, 255, 0.8);
}

/* Content box */
.timeline-content {
    margin-left: 40px;
    padding: 20px;
    background: #1f1f1f;
    border-radius: 12px;
    transition: all 0.35s ease;
    width: 100%;
}

/* Hover interaction */
.timeline-item:hover .timeline-content {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(77, 163, 255, 0.15);
}

/* Text styles */
.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.timeline-content small {
    color: #4da3ff;
    font-size: 13px;
}

.timeline-content p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 25px;
    }

    .timeline-content {
        margin-left: 30px;
    }
}
.cta-button {
    transition: 0.3s ease;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(0,123,255,0.6);
    transform: translateY(-3px);
}
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid #4da3ff;
    border-radius: 20px;
    margin: 30px auto 0;
    position: relative;
}

.scroll-indicator::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #4da3ff;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 22px; }
}
/* ===== Page Loader ===== */
#loader {
    position: fixed;
    inset: 0;
    background: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ================= MOBILE + DESKTOP RESPONSIVE ================= */

/* Global safety */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #0b0f14;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

/* ===== HERO ===== */
.hero {
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: clamp(28px, 6vw, 46px);
}

.subtitle {
    font-size: clamp(14px, 4vw, 18px);
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ===== PROJECT GRID ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* ===== SKILLS & TECH TAGS ===== */
.skills,
.tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== TIMELINE ===== */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
    }

    .timeline-content {
        margin-left: 30px;
    }
}

/* Disable custom cursor on mobile */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}
/* ================= PROGRESS LOADER ================= */
#loader {
    position: fixed;
    inset: 0;
    background: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-box {
    width: 260px;
    text-align: center;
    font-family: "Poppins", sans-serif;
}

.loading-text {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #4da3ff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loadingBlink 1.4s infinite ease-in-out;
}

@keyframes loadingBlink {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

#loader-percent {
    display: block;
    font-size: 18px;
    margin-bottom: 12px;
    color: #4da3ff;
}

.loader-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4da3ff, #00d4ff);
    border-radius: 10px;
    transition: width 0.2s ease;
}

/* ===== THEME VARIABLES ===== */
:root {
    --bg-color: #0b0f14;
    --text-color: #ffffff;
    --card-bg: #1f1f1f;
    --accent: #4da3ff;
}

body.light {
    --bg-color: #f5f7fb;
    --text-color: #111111;
    --card-bg: #ffffff;
    --accent: #4da3ff;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Cards adapt to theme */
.project-card,
.timeline-content {
    background: var(--card-bg);
}

/* Toggle button */
.theme-toggle {
    position: absolute; /* Pins it relative to the nearest positioned ancestor (usually the body or header) */
    top: 0;
    right: 0;
    margin: 30px 40px; /* Adjust these values to match your Logo's margins exactly */
    cursor: pointer;
    z-index: 1000;
}
section {
    padding: 80px 0;
}
.section-divider {
    width: 60%;
    height: 1px;
    margin: 60px auto;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
}
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.4s; }
section:nth-of-type(3) { animation-delay: 0.6s; }
section:nth-of-type(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= SECTION DIVIDERS ================= */

/* 1️⃣ Soft fade line */
.divider-fade {
    width: 70%;
    height: 1px;
    margin: 70px auto;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent),
        transparent
    );
}
/* ================= CONTACT SECTION ================= */

.contact {
    text-align: center;
}

.contact-subtitle {
    max-width: 600px;
    margin: 10px auto 40px;
    font-size: 15px;
    opacity: 0.85;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.contact-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 14px;
    transition: 0.3s ease;
}

.contact-card i {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 10px;
}

.contact-card h4 {
    margin-bottom: 8px;
}

.contact-card a {
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
}
/* ================= CONTACT LINKS ================= */

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    margin-top: 30px;
}

/* Base highlight style (shared) */
.highlight-link {
    display: inline-block;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
}

/* Hover effect */
.highlight-link:hover {
    transform: translateY(-3px);
    color: #000;
}

/* Mail */
.highlight-link.mail {
    background: linear-gradient(90deg, rgba(77,163,255,0.15), rgba(0,212,255,0.15));
    color: var(--accent);
}

.highlight-link.mail:hover {
    background: linear-gradient(90deg, #4da3ff, #00d4ff);
    box-shadow: 0 0 18px rgba(77,163,255,0.6);
}

/* LinkedIn */
.highlight-link.linkedin {
    background: rgba(10,102,194,0.15);
    color: #0A66C2;
}

.highlight-link.linkedin:hover {
    background: #0A66C2;
    box-shadow: 0 0 18px rgba(10,102,194,0.6);
}

/* GitHub */
.highlight-link.github {
    background: rgba(255,255,255,0.12);
    color: var(--text-main);
}

body.light .highlight-link.github {
    background: rgba(0,0,0,0.1);
    color: #111;
}

.highlight-link.github:hover {
    background: #24292e;
    box-shadow: 0 0 18px rgba(36,41,46,0.6);
}

/* Pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
    50% { box-shadow: 0 0 12px rgba(77,163,255,0.3); }
    100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}

/* ---------- THEME VARIABLES ---------- */ /*for light and dark theme*/
:root {
    --bg-main: #0b0f14;
    --bg-section: #0f141b;
    --bg-card: #1c1f26;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --accent: #4da3ff;
    --border-soft: rgba(255, 255, 255, 0.08);
}

/* Light mode overrides */
body.light {
    --bg-main: #f5f7fb;
    --bg-section: #ffffff;
    --bg-card: #f0f2f6;
    --text-main: #111111;
    --text-muted: rgba(0, 0, 0, 0.7);
    --accent: #2563eb;
    --border-soft: rgba(0, 0, 0, 0.08);
}

/* ---------- GLOBAL APPLICATION ---------- */
body {
    background: var(--bg-main);
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

section {
    background: var(--bg-section);
}

/* ---------- HEADINGS & TEXT ---------- */
h1, h2, h3, h4, h5 {
    color: var(--text-main);
}

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

/* ---------- NAVBAR ---------- */
header {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8),
        transparent
    );
}

body.light header {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9),
        transparent
    );
}

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

/* ---------- ABOUT SECTION ---------- */
.about {
    background: var(--bg-section);
}

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

/* ---------- SKILLS TAGS ---------- */
.skills span,
.tech-stack span {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}

/* ---------- CARDS (PROJECT / CONTACT / TIMELINE) ---------- */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-content,
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Mobile: 1 per row */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- SECTION DIVIDERS ---------- */
.divider-fade,
.divider-dots,
.divider-gradient,
.divider-wave {
    opacity: 0.85;
}

body.light .divider-wave {
    opacity: 0.45;
}

/* ---------- BUTTONS ---------- */
.cta-button {
    background: var(--accent);
    color: #fff;
}

/* ---------- FORM INPUTS (if any remain) ---------- */
input,
textarea {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--bg-section);
    color: var(--text-muted);
}
/* WhatsApp highlight */
.highlight-link.whatsapp {
    background: rgba(37, 211, 102, 0.18);
    color: #25D366;
}

.highlight-link.whatsapp:hover {
    background: #25D366;
    color: #000;
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.7);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= CONTACT CARDS – CLEAN INTERACTION ================= */

/* Base contact card (no permanent glow) */
.contact-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover glow for ALL cards */
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 28px rgba(77, 163, 255, 0.45);
}

/* ================= EMAIL TEXT – PERMANENT GLOW ================= */

.highlight-mail {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 10px;

    background: linear-gradient(
        90deg,
        rgba(77,163,255,0.18),
        rgba(0,212,255,0.18)
    );

    color: #4da3ff;
    font-weight: 600;
    letter-spacing: 0.3px;

    animation: mailGlow 2.8s infinite;
    transition: all 0.3s ease;
}

/* Permanent glowing animation for EMAIL TEXT ONLY */
@keyframes mailGlow {
    0% {
        box-shadow: 0 0 4px rgba(77,163,255,0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(77,163,255,0.9);
    }
    100% {
        box-shadow: 0 0 4px rgba(77,163,255,0.4);
    }
}

/* Email hover boost */
.highlight-mail:hover {
    background: linear-gradient(90deg, #4da3ff, #00d4ff);
    color: #000;
    box-shadow: 0 0 26px rgba(77,163,255,1);
    transform: translateY(-2px);
}

/* Click feedback */
.highlight-mail:active {
    transform: scale(0.95);
}
}
#scrollToTop {
    /* POSITIONING - This makes it float */
    position: fixed; 
    bottom: 30px;   /* Distance from bottom */
    right: 30px;    /* Distance from right */
    z-index: 9999;  /* Ensures it stays on top of everything (images, cards, etc) */

    /* STYLING - Makes it look good */
    width: 50px;
    height: 50px;
    background-color: #007bff; /* Change this to match your theme color */
    color: white;
    border: none;
    border-radius: 50%; /* Makes it a circle */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Adds a shadow for depth */
    cursor: pointer;
    font-size: 20px;
    
    /* ANIMATION - Smooth appearance */
    opacity: 0;             /* Hidden by default */
    pointer-events: none;   /* Can't be clicked when hidden */
    transition: all 0.4s ease;
    transform: translateY(20px); /* Slightly pushed down when hidden */
}

/* This class will be added by JavaScript when we scroll down */
#scrollToTop.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0); /* Returns to normal position */
}

/* Hover Effect */
#scrollToTop:hover {
    background-color: #0056b3; /* Darker shade on hover */
    transform: scale(1.1); /* Slightly grows when you hover */
}
/* Container to Center and Wrap the Boxes */
.language-container {
    display: flex;
    flex-wrap: wrap; /* Allows boxes to move to next line if screen is small */
    justify-content: center; /* Centers them horizontally */
    gap: 20px; /* Space between boxes */
    margin-top: 30px;
    width: 100%;
}

/* The Individual "Special Box" */
.lang-card {
    background: rgba(255, 255, 255, 0.05); /* Glass effect dark background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 12px;
    padding: 20px;
    width: 220px; /* Fixed width for uniformity */
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Hover Effect for the Box */
.lang-card:hover {
    transform: translateY(-5px); /* Floats up slightly */
    border-color: #00c6ff; /* Border turns blue */
}

/* Header inside the box (Name + %) */
.lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

/* Percentage Text Color */
.lang-percent {
    color: #00c6ff;
    font-size: 0.9rem;
}

/* Background Bar (Gray track) */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Filled Bar (Blue) */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
}
/* --- Hero Button Group --- */
.hero-buttons {
    display: flex;
    gap: 15px; /* Space between buttons */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* --- Resume Button (Outline Style) --- */
.outline-btn {
    background: transparent; /* No background */
    border: 2px solid #00c6ff; /* Blue border */
    color: #fff;
}

.outline-btn:hover {
    background: rgba(0, 198, 255, 0.1); /* Slight blue tint on hover */
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.outline-btn i {
    margin-left: 8px; /* Space between text and download icon */
}

/* --- Certification Section --- */
.certifications {
    padding: 80px 10%;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive Grid */
    gap: 25px;
    margin-top: 40px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-10px);
    border-color: #00c6ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon-box {
    font-size: 2.5rem;
    color: #00c6ff;
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.cert-card p {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
}

/* --- PASTE AT THE BOTTOM OF STYLE.CSS --- */

/* 1. Stop the screen from zooming out */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; /* Crucial: Cuts off side-scroll */
    position: relative;
}

/* 2. Center the Hero Section on Mobile */
@media screen and (max-width: 768px) {
    /* Hide custom cursor on phones (it causes layout bugs) */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }

    /* Force text centering */
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 20px;
        height: 100vh; /* Full height */
    }

    .hero-content {
        width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem !important; /* Make text bigger */
        line-height: 1.2;
    }

    .navbar {
        padding: 15px 20px; /* Fix navbar spacing */
    }
}
/* --- PASTE THIS AT THE END OF STYLE.CSS --- */

/* 1. GLOBAL FIX: Prevents the page from shifting left/right on mobile */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important; /* Forces content to stay inside screen width */
}
/* 6. Fix Navigation Bar Links */
body.force-light-mode nav a,
body.force-light-mode .navbar a {
    color: #000000 !important;
    font-weight: 600 !important;
}
 /* --- NEW ADDITIONS --- */

/* Skill Icons */
.skills-icons-container { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; justify-content: center; }
.skill-box { text-align: center; transition: transform 0.3s ease; width: 80px; }
.skill-box i { font-size: 3rem; margin-bottom: 5px; display: block; }
.skill-box p { font-size: 0.9rem; margin: 0; }
.skill-box:hover { transform: translateY(-5px); }

/* Services Section */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.service-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 15px; text-align: center; transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-10px); border-color: #38bdae; box-shadow: 0 10px 30px rgba(56, 189, 174, 0.2); }
.service-card i { font-size: 2.5rem; color: #38bdae; margin-bottom: 20px; }

/* Contact Form */
.form-wrapper { width: 100%; max-width: 600px; margin: 40px auto 0; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.input-group { display: flex; gap: 15px; }
.input-group input { width: 50%; }
.contact-form input, .contact-form textarea { padding: 15px; border-radius: 8px; border: 1px solid #ddd; background: rgba(255,255,255,0.05); color: inherit; outline: none; transition: border-color 0.3s; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #38bdae; }
.form-btn { width: 100%; cursor: pointer; }

/* Mobile Fix */
@media (max-width: 768px) { .input-group { flex-direction: column; } .input-group input { width: 100%; } }
/* Fix for the GitHub username */
.github-profile-name, 
.github-username,
h2, h3 {  /* Checking common tags for names */
    color: #ffffff !important; /* Forces text to White */
}
/* Force GitHub icon in contact section to be visible */
.contact-card .fa-github {
    color: #ffffff; /* Sets it to white */
    font-size: 2rem;
}

/* Optional: Make it your theme color (teal) on hover */
.contact-card:hover .fa-github {
    color: #38bdae; 
}
/* =========================================
   WORKFLOW SECTION
   ========================================= */
.workflow {
    text-align: center;
    padding: 80px 10%;
}

.workflow-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    background: var(--card-bg); /* Uses your existing dark theme variable */
    padding: 30px 20px;
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-10px);
    border-color: var(--accent); /* Uses your existing blue/teal color */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Big faded number behind the card */
.step-number {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Very subtle ghost number */
    z-index: 0;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.workflow-step h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.workflow-step p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* --- Mobile Fix for Workflow --- */
@media (max-width: 768px) {
    .workflow-container {
        flex-direction: column;
        align-items: center;
    }
    
    .workflow-step {
        width: 100%;
        max-width: 340px; /* Keeps it consistent with your other cards */
    }
}
/* =========================================
   FOOTER ALIGNMENT FIX
   (Replace previous footer CSS with this)
   ========================================= */

footer {
    background-color: var(--primary-color); /* Matches your theme */
    padding: 70px 10% 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.footer-container {
    display: flex;            /* Uses Flexbox for better distribution */
    justify-content: space-between; /* Pushes columns apart */
    flex-wrap: wrap;          /* Allows wrapping on smaller tablets */
    gap: 40px;
    max-width: 1200px;        /* Prevents it from getting too wide on big screens */
    margin: 0 auto 40px;      /* Centers the container */
}

/* --- Column Styling --- */
.footer-col {
    flex: 1;                  /* Each column takes available space */
    min-width: 220px;         /* Ensures columns don't get too thin */
}

/* First column (Brand) gets slightly more space */
.footer-col:first-child {
    flex: 2;
    padding-right: 40px;      /* Adds breathing room for the text */
}

.footer-col h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
}

.footer-col p {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- List Alignment Fix --- */
.footer-col ul {
    list-style: none;
    padding: 0;        /* CRUCIAL: Removes default browser indentation */
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block; /* Allows transform to work */
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px); /* Subtle slide right on hover */
}

/* --- Social Icons --- */
.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* --- Bottom Copyright --- */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 0.85rem;
}

/* =========================================
   MOBILE FOOTER ALIGNMENT
   ========================================= */
@media (max-width: 768px) {
    footer {
        padding: 50px 5% 20px; /* Reduce side padding on mobile */
    }

    .footer-container {
        flex-direction: column; /* Stack columns vertically */
        text-align: center;     /* Center all text */
        gap: 35px;
    }

    .footer-col:first-child {
        padding-right: 0;       /* Remove desktop padding */
    }

    /* Center the social icons */
    .footer-socials {
        justify-content: center;
    }

    /* Center the copyright text */
    .footer-bottom {
        margin-top: 10px;
    }
}
/* =========================================
   MOBILE ONLY VISIBILITY TOGGLE
   ========================================= */

/* 1. Hide the element by default (on Desktop/Tablet) */
.mobile-only {
    display: none;
}

/* 2. Show the element ONLY on Mobile screens */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important; /* Forces it to appear */
    }
}
/* --- VENTURES TREE SECTION --- */
.ventures-section {
    padding: 4rem 2rem;
    text-align: center;
    background: transparent; /* Or match your body background */
}

.section-subtitle {
    margin-bottom: 3rem;
    color: #888; /* Adjust based on your theme */
    font-size: 0.9rem;
}

/* Tree Layout */
.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.org-card {
    /* Dark semi-transparent background */
    background: rgba(13, 17, 23, 0.6); 
    
    /* Blur behind the card */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Thin glowing border */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Other existing styles... */
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Add a glow on hover */
.org-card:hover {
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
    border-color: #0ef;
    transform: translateY(-5px);
}

.parent-card {
    width: 240px;
    border-bottom: 3px solid var(--main-color, #0ef);
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--main-color, #0ef);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.org-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: white; /* Or var(--text-color) */
}

.org-card p {
    font-size: 0.8rem;
    color: #aaa;
}

.role-badge {
    display: inline-block;
    background: var(--main-color, #0ef);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 5px;
}

/* --- THE CONNECTING LINES (The "Tree" Logic) --- */
.tree-connector {
    position: relative;
    height: 60px; /* Space between parent and children */
    width: 50%; /* Width determines how far apart children branches are */
    min-width: 220px; /* Min width to prevent lines collapsing */
}

/* 1. Line going down from Parent */
.vertical-line-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50%; /* Goes half way down */
    background: rgba(255, 255, 255, 0.2);
}

/* 2. Horizontal bar */
.horizontal-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

/* 3. Lines going down to Children */
.vertical-line-bottom-left {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.vertical-line-bottom-right {
    position: absolute;
    top: 50%;
    right: 0;
    width: 2px;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* Children Container */
.children-level {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px; /* Should match or exceed tree-connector width logic */
    gap: 20px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 600px) {
    /* On mobile, collapse the tree into a simple stack */
    .tree-connector {
        display: none; /* Hide complex lines */
    }
    
    .children-level {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    /* Add a simple simple line for mobile stack */
    .parent-card::after {
        content: '';
        display: block;
        width: 2px;
        height: 20px;
        background: rgba(255,255,255,0.2);
        margin: 0 auto;
        position: absolute;
        bottom: -20px;
        left: 50%;
    }
}

/* Pulse effect for the connecting lines */
.tree-connector div {
    background: linear-gradient(90deg, #00f260, #0575e6, #00f260); /* Electric colors */
    background-size: 200% 200%;
    animation: flowLine 3s linear infinite;
    box-shadow: 0 0 10px rgba(5, 117, 230, 0.6);
}

@keyframes flowLine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Make the logos float gently */
.logo-circle {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Moves up */
    100% { transform: translateY(0px); }
}
.progress-fill {
    width: 0; /* Start at 0 */
    animation: fillBar 2s ease forwards;
    /* Remove the inline style="width: 90%" from HTML if you want strict CSS control, 
       or keep it and let animation handle the visual transition */
}

@keyframes fillBar {
    from { width: 0%; }
    to { width: 100%; } /* This will fill to the container's max, 
                           so rely on the parent width or max-width */
}


#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    background: #0f0c29; /* Matches your theme */
}
