/* General Styles */
:root {
    --primary-color: #8b5cf6;
    --secondary-color: #6c757d;
    --dark-bg: #0b1020;
    --card-bg: #151b2f;
    --text-color: #e6e9f5;
    --heading-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.12);
    --gradient-start: #090f1d;
    --gradient-end: #1a1f3a;
    --shadow-color: rgba(3, 7, 18, 0.45);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.1px;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

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

a:hover {
    color: #0056b3; /* Darker blue on hover */
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: var(--heading-color);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #996df8 0%, #7376f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.38);
}

.btn-secondary {
    /* Match primary CTA: same purple gradient as View Projects */
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: var(--heading-color);
    border: none;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.32);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #996df8 0%, #7376f6 100%);
    color: var(--heading-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.38);
}

/* Section Titles */
.section-subtitle {
    font-size: 1.1em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4em;
    text-align: center;
    margin-bottom: 42px;
    color: var(--heading-color);
    line-height: 1.2;
}

/* Header */
.header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo {
    height: 40px; 
    width: auto;
    filter: brightness(0) invert(1); /* Adjust if logo is dark on dark background */
}
.navbar-brand > h4 {
    font-size: 24px;
    margin-bottom: 0;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

.nav-toggle {
    display: none;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,123,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0,123,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s infinite alternate reverse;
    z-index: 0;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 0.9; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image-wrapper {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-greeting {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero-name {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.hero-title {
    font-size: 2em;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.08em;
    color: var(--text-color);
    margin: 0 auto 12px;
    max-width: 720px;
}

.hero-availability {
    font-size: 0.95rem;
    color: #b8a5e8;
    margin: 0 auto 20px;
    max-width: 640px;
    line-height: 1.5;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-tags span {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.86em;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
    transform: translateY(-5px);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 50px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background-color: rgba(15, 23, 42, 0.7);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.about-card .about-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 1.1em;
    color: var(--text-color);
}

.about-content-bottom {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text .section-subtitles {
    color: var(--primary-color);
    font-size: 1.4rem;
}

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

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    color: var(--text-color);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

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

.service-card {
    background-color: rgba(19, 32, 59, 0.78);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.service-card:hover::before {
    transform: translateX(0);
}

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

.service-card .service-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-color);
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 50px;
}

.portfolio-categories {
    text-align: center;
    margin-bottom: 40px;
}

.category-btn {
    background-color: var(--dark-bg);
    color: var(--text-color);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--heading-color);
    border-color: var(--primary-color);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    cursor: pointer;
    background: linear-gradient(180deg, rgba(19, 32, 59, 0.92) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid var(--border-color);
    min-height: 220px;
    box-sizing: border-box;
}

.portfolio-overlay {
    position: static;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--text-color);
    opacity: 1;
    transition: none;
    border-radius: 15px;
    padding: 24px;
    text-align: left;
    box-sizing: border-box;
    word-break: break-word;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.portfolio-overlay h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.portfolio-overlay p {
    font-size: 1em;
    margin: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    color: #c7b8ff;
    font-size: 0.9em;
    font-weight: 600;
}

.project-link:hover {
    background-color: #7c3aed;
    color: var(--heading-color);
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
}

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

.pricing-card {
    background-color: rgba(19, 32, 59, 0.82);
    padding: 36px 28px 32px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card.featured {
    background-color: var(--primary-color);
    color: var(--heading-color);
    transform: translateY(-15px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.5);
    border-color: var(--primary-color);
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured ul li {
    color: var(--heading-color);
}

.pricing-card.featured .btn-primary {
    background-color: var(--dark-bg);
    color: var(--primary-color);
    box-shadow: none;
}

.pricing-card.featured .btn-primary:hover {
    background-color: var(--card-bg);
    color: var(--heading-color);
}


.pricing-card:hover:not(.featured) {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pricing-card h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-card ul {
    margin-bottom: 0;
}

.experience-list {
    list-style: disc;
    padding-left: 1.5rem;
    padding-right: 0.25rem;
    margin: 0;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.experience-list li {
    display: list-item;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-color);
    text-align: left;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

.role-meta {
    color: var(--primary-color);
    font-weight: 600;
    margin: -4px 0 10px;
}

/* Education / Academic Background */
.testimonials-section {
    padding: 80px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

.education-card {
    min-height: 200px;
    background-color: rgba(21, 27, 47, 0.95);
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(139, 92, 246, 0.45);
}

.education-degree {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.45;
}

.education-school {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading-color);
}

.education-detail {
    margin: 0;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* Scroll reveal (applied via JS) */
.section-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-reveal.no-reveal {
    opacity: 1;
    transform: none;
}

/* Nav link active state */
.nav-links a.nav-active {
    color: var(--primary-color);
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.contact-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.contact-lead {
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.5;
    opacity: 0.92;
}

.contact-section .section-title {
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.certifications-section {
    padding: 80px 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
}

.cert-card {
    background-color: rgba(19, 32, 59, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.cert-card h4 {
    margin: 0;
    font-size: 1.05em;
}

.cert-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.cert-icon {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 2px;
}

.cert-meta {
    margin: 0 0 14px;
    color: #b9b6d8;
    font-size: 0.9em;
}

.cert-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--primary-color);
}

.cert-links a:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

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

.contact-card {
    background-color: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card i {
    font-size: 1.4em;
    color: var(--primary-color);
}

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

.contact-card p {
    margin: 0;
    color: var(--text-color);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: rgba(15, 23, 42, 0.92);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--dark-bg);
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

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

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-toggle {
        display: block;
    }

    .about-content-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-image, .about-text {
        min-width: unset;
        width: 100%;
    }

    .about-image img {
        max-width: 80%;
    }

    .about-stats {
        justify-content: center;
    }

    .stat-item {
        flex: unset;
        width: 45%; /* Two items per row */
    }

    .hero-name {
        font-size: 2.8em;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .section-title {
        font-size: 2em;
    }

    .pricing-card.featured {
        transform: translateY(0); /* Remove translateY for smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-name {
        font-size: 2.5em;
    }

    .hero-title {
        font-size: 1.4em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .about-section, .services-section, .portfolio-section, .pricing-section, .testimonials-section, .certifications-section, .contact-section {
        padding: 60px 0;
    }

    .about-grid, .services-grid, .portfolio-grid, .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .education-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .education-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-name {
        font-size: 2em;
    }

    .hero-title {
        font-size: 1.2em;
    }

    .hero-image-wrapper {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 1.5em;
        margin-bottom: 30px;
    }

    .about-grid, .services-grid, .portfolio-grid, .pricing-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .about-card, .service-card, .pricing-card, .education-card {
        padding: 20px;
    }

    .portfolio-item {
        padding: 0;
    }

    .stat-item {
        width: 100%; /* Full width for stats on very small screens */
    }

}
