:root {
    --primary: #00ffa6;
    --bg-light: #f6f9fc;
    --bg-dark: #121212;
    --text-light: #f5f5f5;
    --text-dark: #222;
    --card-bg: #1e1e1e;
    --input-bg: #2c2c2c;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-dark);
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-light);
}

.light-mode {
    --card-bg: #fff;
    --input-bg: #f5f5f5;
    --toggle-bg: #e2e8f0;
    --toggle-icon: #111;
}

.dark-mode {
    --card-bg: #1e1e1e;
    --input-bg: #2c2c2c;
    --toggle-bg: #1f1f1f;
    --toggle-icon: #fff;
}



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

html,
body {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    transition: background 0.4s, color 0.4s;
}

body.light-mode {
    background: var(--bg-light);
    color: var(--text-dark);
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-light);
}

/* Hero overlay intro (5s fullscreen) */
.intro-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-align: center;
    padding: 2rem;
    animation: fadeOut 1s ease 4s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- NAVBAR --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* Dark Mode Navbar */
body.dark-mode header {
    background: rgba(18, 18, 18, 0.95);
}

/* Light Mode Navbar */
body.light-mode header {
    background: rgba(255, 255, 255, 0.95);
}

/* Nav Container */
.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

/* Nav Links */
nav {
    display: flex;
    align-items: center;
}

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

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: inherit;
    font-size: 1rem;
    position: relative;
    transition: 0.3s ease;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background-color: var(--primary);
    transition: 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile */
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

/* Mobile View */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1rem;
        display: none;
        transition: 0.3s ease;
    }

    body.dark-mode .nav-links {
        background: rgba(18, 18, 18, 0.95);
        backdrop-filter: blur(10px);
    }

    body.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

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

    .menu-icon {
        display: block;
        margin-left: 1rem;
    }
}



.section {
    padding: 40px 20px;
    min-height: 70vh;
}

.highlight {
    color: #00ffa6;
    font-weight: 800;
}

/* ===== Hero Section ===== */

.hero-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    /* Extra space for navbar */
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
    max-width: 1400px;
    width: 100%;
    margin: auto;
    padding: 0 40px;
}

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

.hero-text h1 {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons a {
    text-decoration: none;
    background: var(--primary);
    color: #000;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
}

.hero-buttons a.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.hero-buttons a:hover {
    opacity: 0.85;
}

/* Image Style */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    height: auto;
    display: block;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
    }

    .hero-text {
        flex: 1;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image-wrapper {
        flex: 1;
        justify-content: center;
    }
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    /* Align left under buttons */
    flex-wrap: wrap;
}

.hero-text .social-links {
    justify-content: flex-start;
    /* Match buttons alignment */
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: #000;
    transform: translateY(-3px);
}

/* Responsive fix for smaller devices */
@media (max-width: 768px) {
    .hero-text .social-links {
        justify-content: center;
    }

    .social-links a {
        font-size: 1.1rem;
        width: 38px;
        height: 38px;
    }
}


/* Mobile Responsive (keep as is) */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

.visa-badge {
    background: var(--primary);
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 255, 166, 0.2);
    transition: transform 0.3s ease;
}

.visa-badge:hover {
    transform: scale(1.05);
}

/* ===== About Section ===== */

.about-unique .about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.about-unique .about-intro h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-unique .about-intro p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.about-card {
    display: flex;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    align-items: center;
}

/* .about-card:hover {
            transform: translateY(-5px);
        } */

.about-avatar {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.about-right {
    flex: 1;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-description {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.6;
}


.about-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: var(--input-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 255, 166, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(0, 255, 166, 0.05);
}

.info-card i {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 4px;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.info-card a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .about-avatar {
        margin-bottom: 20px;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
        /* 1 column layout on small screens */
    }

    .info-card {
        flex-direction: column;
        /* Stack icon and content */
        align-items: center;
        text-align: center;
    }

    .info-card i {
        margin-bottom: 10px;
    }
}

/* ===== Skills Section ===== */

.skills-heading {
    text-align: center;
    margin-bottom: 40px;
}

.skills-heading h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.skills-heading p {
    font-size: 1.1rem;
    opacity: 0.85;
}

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

.skill-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary);
}

.skill-box:hover {
    transform: translateY(-6px);
}

.skill-box h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Skill Bar Styling */
.skill-bar {
    margin-bottom: 15px;
}

.skill-bar span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.bar {
    width: 100%;
    height: 10px;
    background: #ccc;
    border-radius: 10px;
    overflow: hidden;
}

.dark-mode .bar {
    background: #333;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--primary);
    transition: width 1.2s ease;
    border-radius: 10px;
}

/* Soft Skills Pills */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pill {
    background: var(--primary);
    color: #000;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: transform 0.2s;
    cursor: default;
}

.pill:hover {
    transform: scale(1.05);
}

/* ===== Projects Section ===== */

.projects-heading {
    text-align: center;
    margin-bottom: 40px;
}

.projects-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.projects-heading p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Filter Buttons */
.filter-tabs {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #000;
}

/* Project Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    transition: all 0.4s ease;
}

/* Card Styling */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 166, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 330px;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 255, 166, 0.15);
}

.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-content h3 {
    font-size: 1.3rem;
}

.project-content p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.project-btn {
    align-self: flex-start;
    padding: 8px 16px;
    background: var(--primary);
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.project-btn:hover {
    background: #00e79c;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .project-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }
}


/* ===== Certifications Section ===== */

.certificate-section {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 100px 20px 60px;
    text-align: center;
    transition: background 0.4s ease, color 0.4s ease;
}

body.light-mode .certificate-section {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Heading */
.cert-heading h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.cert-heading p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: auto;
}

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

/* Flip Card Effect */
.cert-card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.cert-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Face */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 10px 25px rgba(0, 255, 166, 0.08);
}

/* Image Front */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Card Back */
.card-back {
    background: var(--card-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
    padding: 20px;
    gap: 10px;
    transition: background 0.4s ease, color 0.4s ease;
}

body.light-mode .card-back {
    color: var(--text-dark);
}

/* Texts on Card */
.card-back h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.card-back p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
    text-align: center;
}

/* Button Link */
.card-back a {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary);
    color: #000;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-back a:hover {
    background: #00e79c;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .certificate-section {
        padding: 80px 20px 40px;
    }

    .cert-heading h2 {
        font-size: 2.2rem;
    }

    .card-back h3 {
        font-size: 1rem;
    }
}

/* ===== Testimonials Section ===== */

.testimonials-heading {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-heading h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.testimonials-heading p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 255, 166, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
    margin-bottom: 0px;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 255, 166, 0.15);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-client img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.testimonial-client h4 {
    margin: 0;
    font-size: 1rem;
}

.testimonial-client span {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Dark mode background */
.dark-mode .testimonial-card {
    background: rgba(255, 255, 255, 0.03);
}

.testimonial-impact {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 500;
    margin: 10px 0 10px;
    opacity: 0.9;
    line-height: 1.5;
}

.business-profile-btn {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: var(--primary);
    color: #000;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 255, 166, 0.3);
    transition: 0.3s ease;
}

.business-profile-btn:hover {
    background: #00e79c;
    transform: scale(1.05);
}


/* ===== Contact Section ===== */

.contact-heading {
    text-align: center;
    margin-bottom: 40px;
}

.contact-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-heading p {
    opacity: 0.8;
    font-size: 1.1rem;
}


/* Contact Form */
.contact-form-modern {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-modern input,
.contact-form-modern textarea {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.contact-form-modern button {
    padding: 12px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}


/* Mobile View */
@media (max-width: 768px) {
    .contact-content-modern {
        flex-direction: column;
    }

    .contact-form-modern {
        width: 100%;
    }
}

/* Hire Me CTA Section */
.hire-me-cta {
    padding: 60px 20px;
    background: var(--primary);
    color: #000;
    text-align: center;
    border-radius: 20px;
    margin: 60px auto 20px;
    max-width: 600px;
    box-shadow: 0 8px 25px rgba(0, 255, 166, 0.2);
    width: 90%;
}

.hire-me-cta .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.hire-me-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.hire-me-cta p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.hire-btn {
    background: #000;
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
}

.hire-btn:hover {
    background: #111;
    transform: scale(1.05);
}

/* Dark Mode */
.dark-mode .hire-me-cta {
    background: var(--primary);
    color: #000;
}

.dark-mode .hire-btn {
    background: #000;
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .hire-me-cta {
        padding: 40px 15px;
        width: 87%;
    }

    .hire-me-cta h2 {
        font-size: 1.4rem;
    }

    .hire-me-cta p {
        font-size: 0.95rem;
    }

    .hire-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
}


/* ===== Footer Section ===== */

.footer {
    padding: 40px 20px;
    background: transparent;
    text-align: center;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* margin-top: 80px; */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
    opacity: 0.8;
    transition: 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-note {
    opacity: 0.6;
}

/* Dark mode adjustments */
.dark-mode .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 600px) {
    .footer-links {
        justify-content: center;
    }
}