/* ======================================
   GLOBAL RESET & BASE
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #110720;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* ======================================
   COLOR VARIABLES
====================================== */
:root {
    --background: #110720;
    --bg-main: #0b0b0b;
    --bg-card: #111111;

    --text-main: #ffffff;
    --text-secondary: #cfcfcf;
    --text-muted: #9ca3af;

    --accent: #7c3aed;
    --accent-hover: #a78bfa;

    --border-soft: rgba(255, 255, 255, 0.08);
}

/* ======================================
   LAYOUT HELPERS
====================================== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* Navbar base */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(21, 10, 37, 0.75); /* translucent */
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Inner container */
.navbar-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.logo-text {
    display: inline-block;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Nav links for large screens */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6); /* purple/pink gradient */
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger / toggle arrow */
.nav-toggle {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.3rem;
}

/* Dropdown card for small screens */
.nav-card {
    display: none;
    position: absolute;
    top: 70px;
    right: 1rem;
    background: rgba(17, 7, 32, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    flex-direction: column;
    gap: 1rem;
}

.nav-card a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-card a:hover {
    color: #ec4899;
}

/* Show card when toggled */
.nav-card.show {
    display: flex;
}

/* Responsive rules */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
}


/* ======================================
   HERO SECTION
====================================== */
.hero {
    background: #110720;
    padding: 6rem 2rem;
    overflow: hidden;
    padding-bottom:.5rem;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* LEFT TEXT */
.hero-text {
    position: relative;
    max-width: 600px;
    color: #fff;
}

.hero-arrow {
    position: absolute;
    top: -40px;
    right: 30%;
    width: 200px;
    transform: rotate(-10deg) scaleX(-1);
}

/* TEXT STYLES */
.hello {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dev-line {
    font-size: 1.2rem;
    color: #ccc;
}

.cover-line {
    font-size: 3.7em;
    line-height: 1.1;
    margin: 0.5rem 0;
    background: linear-gradient(90deg, #9b5de5, #f15bb5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cover-highlight {
    position: relative;
    padding: 0.2em 0.5em;
    border-radius: 50%;
    background: rgba(155, 93, 229, 0.25);
    color: #fff;
    -webkit-text-fill-color: #9b5de5;
}

.tagline {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 1rem;
}

/* RIGHT IMAGE */
.hero-image {
    display: flex;
    justify-content: center;
    margin-top: 2rem; /* slight drop */
}

.profile-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin-left:-34em;
}

.profile-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.profile-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, #9b5de5, transparent 70%);
    filter: blur(25px);
    animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* MOBILE */
@media (max-width: 900px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-arrow {
        display: none;
    }

    .cover-line {
        font-size: 2.4em;
    }

    .hero-image {
        margin-top: 2rem;
    }
    .profile-wrap{
        margin-left:0;
    }
}

.hero-typing {
    background: #110720;
    padding: 5rem 0;
}

.hero-typing-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 0 2rem;
}

/* LEFT TEXT */
.hero-typing-text {
    flex: 1.2;
}

.hero-text-typing {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

#role-typing {
    background: linear-gradient(90deg, #b66cff, #6a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-line {
    color: #ddd;
    margin-bottom: 1.5rem;
}

.company {
    color: #b66cff;
}

.company-logo {
    height: 24px;
    margin: 0 8px;
    vertical-align: middle;
}

.explainer {
    color: #cfcfe8;
    line-height: 1.7;
    max-width: 650px;
}

/* RIGHT IMAGE */
.hero-typing-image {
    position: relative;
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.hero-typing-image img {
    width: 280px;
    height: 360px;
    object-fit: cover;
    border-radius: 18px;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(182,108,255,0.35);
}

/* Glow behind image */
.image-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(182,108,255,0.5), transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-typing-inner {
        flex-direction: column;
    }

    .hero-typing-image {
        margin-top: 3rem;
    }

    .explainer {
        margin: auto;
    }
}

.hero-typing {
    padding: 3rem;
}

.hero-text-typing {
    font-size: 48px;
    font-weight: 800;
    font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
    color: #f5e8e8;
}

#role-typing {
    color: #73147c;
    padding-right: 6px;
    border-right: 3px solid #257c14;
    white-space: nowrap;
    animation: caretBlink 0.9s infinite;
}

@keyframes caretBlink {
    0% { border-color: transparent; }
    50% { border-color: #5e0666; }
    100% { border-color: transparent; }
}
.company{
    color: #1505f3;
    font-size: 1.2em;
}
.explainer {
    margin-top: 2em;
    max-width: 720px;
    font-size: 17px;
    line-height: 1.7;
    color: #f1a5f8;
    margin-left:-2em;
    animation: caretBlink 0.9s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-text-typing {
        font-size: 30px;
    }
}


/* ======================================
   ABOUT / TEXT SECTIONS
====================================== */
.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
}

/* ======================================
   PROJECT / EXPERIENCE CARDS
====================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.4);
}

.card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ======================================
   FEATURED PROJECTS
====================================== */
.featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* ======================================
   LINKS & BUTTONS
====================================== */
.link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    color: var(--accent-hover);
}

/* ======================================
   FOOTER
====================================== */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ======================================
   ANIMATIONS
====================================== */
.fade-up {
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }
}
h1 span {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero {
    background: linear-gradient(135deg, #0b0b0b 0%, #111111 100%);
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}
.link {
    color: var(--accent);
    transition: all 0.3s ease;
}
.link:hover {
    color: #a78bfa;
    transform: translateY(-2px);
}
.experience-section {
    background: #0d061a;
}

/* Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Card */
.experience-card {
    padding: 2.2rem;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        #110720,
        #1a0b34,
        #110720
    );
    color: #e6e6ff;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Soft glow edge */
.experience-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(
        120deg,
        rgba(182,108,255,0.35),
        transparent,
        rgba(106,92,255,0.35)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover effect */
.experience-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(182,108,255,0.35);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(90deg, #b66cff, #6a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d7d7f5;
}

/* Animation delay support */
.fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--i) * 0.15s);
}

@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.projects-section {
    background: #110720;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Card */
.project-card {
    padding: 2.2rem;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        #110720,
        #1b0a38,
        #110720
    );
    color: #e8e8ff;
    box-shadow: 0 12px 50px rgba(0,0,0,0.45);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 90px rgba(106,92,255,0.35);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    background: linear-gradient(90deg, #b66cff, #6a5cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d9d9f6;
    margin-bottom: 1.5rem;
}

/* Buttons */
.project-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    background: linear-gradient(90deg, #b66cff, #6a5cff);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(182,108,255,0.6);
}

/* Multiple links (affiliate platforms) */
.project-links a {
    display: inline-block;
    margin-right: 1rem;
    margin-top: 0.5rem;
    color: #b66cff;
    font-weight: 600;
    text-decoration: none;
}

.project-links a:hover {
    text-decoration: underline;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(145deg, #110720, #1b0f3a);
    border-radius: 20px;
    box-shadow: 0 0 10px #6a0dad, 0 0 20px #ff79c6;
    text-align: left;
    padding: 3rem 2rem;
    transition: 0.3s;
}
.contact-card:hover {
    box-shadow: 0 0 30px #6a0dad, 0 0 60px #ff79c6;
}

/* Contact Info */
.contact-info p {
    font-size: 1.1em;
    margin-bottom: 0.8em;
}
.contact-form .form-grid{
    text-align: left !important;
    align-items: left !important;
    margin-bottom: 10px;
}
/* Form Inputs */
.contact-form .form-group input {
    background: #1b0f3a;
    color: #fff;
    border-radius: 12px;
    padding: 0.75em 1em;
    border: none;
    outline: none;
    width: 100%;
    box-shadow: inset 0 0 5px #110720;
    transition: 0.3s;
}
.contact-form .form-group input:focus {
    box-shadow: 0 0 5px #ff79c6, 0 0 10px #6a0dad inset;
}

/* Submit Button */
.btn-submit.glow-btn {
    display: inline-block;
    padding: 0.8em 2em;
    font-size: 1.1em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    background: linear-gradient(90deg, #6a0dad, #ff79c6);
    box-shadow: 0 0 15px #6a0dad, 0 0 30px #ff79c6;
    transition: 0.3s;
    margin-top: 2em;
}
.btn-submit.glow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #6a0dad, 0 0 50px #ff79c6;
}
@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1rem;
    }
}
