/* =========================================
   1. Variables & Global Styles
   ========================================= */
:root {
    /* Colors - Modern Violet/Dark Theme */
    --bg-primary: hsl(254, 87%, 3%);
    /* Deep Black/Blue */
    --bg-secondary: #0a0c12;
    /* Lighter Dark */
    --bg-card: #0c0c11;
    /* Card Background */

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;

    --accent-color: #804cf8;
    /* Violet 500 */
    --accent-hover: #7332e5;
    /* Violet 600 */
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, #d946ef);
    /* Violet to Fuchsia */

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --border-radius: 20px;
    /* More rounded */
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    /* More breathing room */
}

/* Alternate section backgrounds */
section:nth-of-type(even) {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: table;
    /* Center properly with margin auto */
    margin-left: auto;
    margin-right: auto;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* =========================================
   2. Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 4, 22, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(8, 4, 22, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}











































.btn-toggle{
    background: transparent;
    border: 1px solid #ccc;
    padding: 6px 10px;
    margin-right: 8px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-toggle:hover{
    background:#eee;
}

/* Dark Mode */
.dark-mode{
    background:#0f172a;
    color:white;
}

.dark-mode .header{
    background:#020617;
}

.dark-mode .section{
    background:#020617;
}










/* ── Logo icon (square badge) ── */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0px;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.logo-icon:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.4);
}

.logo-icon-accent {
    color: var(--accent-color);
}

/* ── Nav links (centered) ── */
.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
}

.nav-link {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #06b6d4;
    background: rgba(0, 34, 255, 0.224);
}

.nav-link.active {
    color: #06b6d4;
    /* cyan, like the reference */
    background: rgba(6, 182, 212, 0.08);
}

/* No underline bar — kept minimal like reference */
.nav-link::after {
    display: none;
}

/* ── Right side: Contact Me + hamburger ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-contact-me {
    display: inline-flex;
    align-items: center;
    padding: 9px 22px;
    border-radius: 50px;
    border: 2px solid #06b6d4;
    color: #06b6d4;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    background: transparent;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    white-space: nowrap;
}

.btn-contact-me:hover {
    background: #06b6d4;
    color: #000;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
}

/* ── Hamburger ── */
.menu-btn {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease-in-out;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.mobile-link {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 14px 0;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-link:hover {
    color: #06b6d4;
}

/* ── Responsive: hide nav links, show hamburger ── */
@media (max-width: 960px) {
    .nav-list {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .btn-contact-me {
        display: none;
    }
}

/* =========================================
   3. Hero Section
   ========================================= */
/* Hero Section - Side by Side */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 90px;
    padding-bottom: 50px;
}


.hero-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.hero-text-content {
    flex: 1;
    text-align: left;
    /* Left align text */
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--accent-glow);
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-title span {
    color: var(--text-primary);
    background: var(--text-primary);
    font-size: 3.5rem;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-role span {
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    /* Limit line length */
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    /* Left align buttons */
    margin-bottom: 40px;
}

.btn {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.hero-socials a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Prevent overlap on small screens */
@media (max-height: 700px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-bottom: 120px;
        /* Space for scroll down arrow */
    }
}

/* Ensure padding on normal screens too */
.hero-content {
    padding-bottom: 60px;
    /* Space for scroll down */
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.img-placeholder {
    width: 290px;
    height: 300px;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-details {
    margin-top: 30px;
}

.about-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.about-details i {
    color: var(--accent-color);
}

/* Customized Icon Box for About Section */
.about-image .img-placeholder-hero {
    width: 320px;
    height: 320px;
    background-color: var(--bg-card);
    border: 3px solid var(--accent-color);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--accent-color);
    box-shadow: 0 15px 40px -10px var(--accent-glow);
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.about-image .img-placeholder-hero:hover {
    transform: translateY(-10px) rotate(5deg);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 20px 50px -10px var(--accent-glow);
}

.about-image .img-placeholder-hero i {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

/* =========================================
   5. Skills & Services
   ========================================= */
.services-list {
    display: grid;
    /* Wider cards */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skills-grid {
    display: grid;
    /* Wider cards */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--bg-card);
    padding: 40px;
    /* Larger padding */
    border-radius: var(--border-radius);
    text-align: left;
    /* Left align */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 40px;
    /* Larger padding */
    border-radius: var(--border-radius);
    text-align: left;
    /* Left align */
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-card:hover,
.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background-color: #252f44;
}

.skill-card i,
.service-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}

.skill-card h3,
.service-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.service-item p,
.skill-card p {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Service Tools Tags ── */
.service-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.service-tool-tag i {
    font-size: 0.7rem;
    color: var(--accent-color);
    margin-bottom: 0 !important;
    display: inline !important;
}

.service-item:hover .service-tool-tag {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

/* =========================================
   6. Projects Section
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Project image ── */
.project-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.45s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 30px;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tags li {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-sm {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-sm:hover {
    color: var(--accent-color);
}

/* =========================================
   7. Contact Section
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.contact-info {
    padding: 50px 40px;
    background: linear-gradient(145deg, var(--accent-color), #6d28d9);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.contact-info>p {
    font-size: 0.93rem;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    font-size: 0.95rem;
    word-break: break-word;
}

.contact-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contact-form {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* Smoother transitions */
.btn,
.nav-link,
.project-card,
.skill-card,
.service-item,
.contact-item i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy lively feel */
}

/* Nav Link Hover - Glowing Underline */
.nav-link::after {
    height: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Button Hover - Glow and Lift */
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-3px);
}

/* Card Hovers - Glassmorphism & Border Glow */
.skill-card:hover,
.service-item:hover,
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    background-color: rgba(30, 41, 59, 0.95);
    /* Slightly lighter */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 15px var(--accent-glow);
    /* Outer glow */
}

.skill-card i,
.service-item i {
    transition: transform 0.4s ease;
}

.skill-card:hover i,
.service-item:hover i {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 15px var(--accent-color);
}

/* Contact Icons */
.contact-item:hover i {
    transform: scale(1.2);
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================
   8. Footer
   ========================================= */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* --- Brand Column --- */
.footer-brand .footer-logo {
    font-size: 2rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 18px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* --- Quick Links Column --- */
.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links ul li a i {
    color: var(--accent-color);
    font-size: 0.7rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

/* --- Contact Column --- */
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.footer-contact ul li i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

/* --- Footer Bottom Bar --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 20px 0;
    text-align: center;
}

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

.footer-bottom p span {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-bottom p i {
    color: #f43f5e;
    margin: 0 3px;
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* =========================================
   14. Testimonials Section
   ========================================= */
.testimonials-section {
    background-color: var(--bg-primary);
    overflow: hidden;
    padding-bottom: 80px;
}

/* ── Marquee wrapper: full-width, clips overflow ── */
.testimonials-marquee-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* ── The scrolling row ── */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonials-marquee {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
}

/* Pause entire strip when hovering any card */
.testimonials-marquee:hover {
    animation-play-state: paused;
}

/* ── Individual card ── */
.testimonial-card {
    width: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 22px 20px 18px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
}

/* ── Top row: stars + badge ── */
.t-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 0.82rem;
}

/* Badge / pill */
.t-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.45);
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.t-badge i {
    font-size: 0.65rem;
}

/* ── Quote text ── */
.testimonial-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
}

/* ── Author row ── */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Initials circle */
.testimonial-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid rgba(139, 92, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-color);
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-info h4 {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-info span {
    font-size: 0.73rem;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Social icon circle */
.t-social {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    text-decoration: none;
}

.t-social:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -60px;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Slider viewport — clips overflow */
.testimonials-slider {
    overflow: hidden;
    position: relative;
    padding: 16px 0 6px;
}

/* Track: horizontal flex row — JS sets transform */
.testimonials-track {
    display: flex;
    gap: 22px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 3 cards visible on desktop */
.testimonial-card {
    min-width: calc((100% - 44px) / 3);
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 26px 22px 22px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.14);
    transform: translateY(-4px);
}

/* Decorative quote icon - smaller */
.testimonial-quote-icon {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.22;
    margin-bottom: 10px;
    line-height: 1;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.72;
    margin-bottom: 20px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
}

/* Author row */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-info span {
    font-size: 0.75rem;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 0.72rem;
}

/* Controls: prev/next + dots */
.testimonials-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonials-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.4);
    background: transparent;
    color: var(--accent-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonials-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.testimonials-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-glow);
}


/* =========================================
   10. Experience Section (Timeline)
   ========================================= */

.timeline {
    position: relative;
    max-width: 1200px;
    /* Increased from 800px to allow wider items */
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--accent-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    /* Reverted to 50% to maintain split layout */
    box-sizing: border-box;
    /* Reset left/text-align since user might have messed them up */
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 25px;
    box-shadow: 0 0 10px var(--accent-color);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 20px;
    text-align: left;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.timeline-role {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-company i {
    color: var(--accent-color);
}

/* Timeline Description List */
.timeline-desc dl {
    margin: 0;
}

/* Challenge - Orange/Red */
.timeline-desc dt:nth-of-type(1) {
    color: #f59e0b;
    /* Amber 500 */
}

.timeline-desc dt:nth-of-type(1) i {
    color: #f59e0b;
}

/* Action - Blue/Primary */
.timeline-desc dt:nth-of-type(2) {
    color: #3b82f6;
    /* Blue 500 */
}

.timeline-desc dt:nth-of-type(2) i {
    color: #3b82f6;
}

/* Result - Green */
.timeline-desc dt:nth-of-type(3) {
    color: #10b981;
    /* Emerald 500 */
}

.timeline-desc dt:nth-of-type(3) i {
    color: #10b981;
}

.timeline-desc dt:first-child {
    margin-top: 0;
}

.timeline-desc dt i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.timeline-desc dd {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 4px 0 0 24px;
    /* Indent under title */
    line-height: 1.5;
}

/* =========================================
   11. Certifications Section
   ========================================= */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cert-year {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================================
   9. Responsive Media Queries
   ========================================= */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin-bottom: 40px;
    }

    .hero-container-flex {
        flex-direction: column-reverse;
        /* Text bottom/Image top usually, or standard column. Let's do standard column for better flow on mobile */
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-buttons,
    .hero-socials {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title span {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    /* Footer stacks to single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        grid-column: 1;
    }

    /* Testimonials card smaller padding on tablet */
    .testimonial-card {
        width: 150px;
        padding: 35px 30px;
    }

    .nav-list {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .hero-role {
        font-size: 1.5rem;
    }

    .hero-img-box {
        height: 280px;
    }

    /* Fix About Icon Responsive */
    .about-image .img-placeholder-hero {
        width: 250px;
        height: 250px;
        font-size: 5rem;
        border-width: 2px;
    }

    /* Fix Skills/Services Grid on Mobile */
    .skills-grid,
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .img-placeholder-hero {
        font-size: 6rem;
    }

    .section {
        padding: 60px 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .contact-info {
        padding: 36px 28px;
        order: -1;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-info>p {
        font-size: 0.88rem;
    }

    .contact-item {
        font-size: 0.88rem;
        margin-top: 18px;
        gap: 10px;
    }

    .contact-form {
        padding: 36px 28px;
    }

    /* Timeline Responsive */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    /* Further reduce About Icon for very small screens */
    .about-image .img-placeholder-hero {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Adjust container padding */
    .container {
        padding: 0 20px;
        width: 310px;
    }

    /* Form Fixes for Small Screens */
    .contact-info,
    .contact-form {
        padding: 20px;
    }

    .success-message {
        min-width: auto;
        width: 90%;
        font-size: 0.9rem;
        padding: 15px;
    }
}

/* Very Small Screens (e.g. iPhone SE / Galaxy Fold) */
@media (max-width: 320px) {

    .header {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu-btn {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title span {
        font-size: 2rem;
    }

    .hero-buttons {
        gap: 10px;
        width: 100%;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }

    .about-image .img-placeholder-hero {
        width: 180px;
        height: 180px;
        font-size: 3rem;
        border-width: 2px;
    }

    .skills-grid,
    .services-list,
    .projects-grid,
    .edu-certs-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure form doesn't break */
    .contact-wrapper {
        border-radius: 10px;
    }

    .contact-info {
        padding: 24px 16px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .contact-item {
        font-size: 0.78rem;
        gap: 8px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* =========================================
   13. Education & Certifications Shared Section
   ========================================= */
.edu-certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title i {
    color: var(--accent-color);
}

/* Education Card Tweaks */
.education-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.edu-content h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

/* Logo + content row inside education card */
.edu-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Compact Cert Cards */
.certs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cert-card-compact {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.cert-card-compact:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.8);
}

.cert-icon-sm {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px;
}

/* Logo image inside cert icon */
.cert-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.cert-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.cert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Company logos row in timeline */
.company-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.company-logo-badge {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.company-logo-badge i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.company-separator {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .edu-certs-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================
   11. Scroll To Top Button
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--accent-glow);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    transform: translateY(20px);
}

.scroll-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* =========================================
   12. Success Message
   ========================================= */
.success-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 10px;
    font-weight: 600;
    width: 90%;
    max-width: 320px;
    min-width: 0;
    justify-content: center;
    animation: slideDown 0.5s ease forwards;
}

.success-message i {
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.scroll-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* =========================================
   Pricing Plans Section
   ========================================= */
.plans-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.plans-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: -50px;
    margin-bottom: 60px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

/* ── Plan Card ── */
.plan-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.08);
}

.plan-card:hover::before {
    opacity: 1;
}

/* ── Featured (PRO) Card ── */
.plan-card--featured {
    background: linear-gradient(145deg, #120e22, #0e0a1e);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(139, 92, 246, 0.3);
    transform: translateY(-6px) scale(1.025);
}

.plan-card--featured::before {
    background: var(--accent-gradient);
    opacity: 1;
    height: 4px;
}

.plan-card--featured:hover {
    transform: translateY(-16px) scale(1.025);
    box-shadow: 0 30px 70px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.5);
}

/* ── Badge ── */
.plan-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 20px;
    width: fit-content;
}

.featured-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(217, 70, 239, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

/* ── Plan Icon ── */
.plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 18px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.plan-card:hover .plan-icon {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-color);
    transform: rotate(-5deg) scale(1.08);
}

.plan-card--featured .plan-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(217, 70, 239, 0.2));
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

/* ── Plan Name ── */
.plan-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.plan-card--featured .plan-name {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Plan Price ── */
.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 18px;
    line-height: 1;
}

.plan-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    align-self: flex-start;
    padding-top: 8px;
}

.plan-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.custom-price-text {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding-bottom: 6px;
}

/* ── Plan Description ── */
.plan-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Feature List ── */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features li i {
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-features li i.fa-check {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.plan-features li i.fa-times {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-features li:has(.fa-times) {
    opacity: 0.45;
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.15);
}

/* ── CTA Button ── */
.plan-btn {
    display: block;
    text-align: center;
    padding: 13px 24px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.plan-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.plan-btn--featured {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.35);
}

.plan-btn--featured:hover {
    background: linear-gradient(135deg, #7332e5, #c026d3);
    border-color: transparent;
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.55);
    transform: translateY(-3px);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-card--featured {
        transform: none;
    }

    .plan-card--featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plans-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        margin-top: -40px;
    }
}
