/* =========================================================
   HOME PAGE
   home.css
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --primary: #111827;
    --secondary: #4f46e5;
    --secondary-light: #eef2ff;

    --text: #111827;
    --text-light: #6b7280;

    --background: #ffffff;
    --background-light: #f8fafc;

    --border: #e5e7eb;

    --success: #16a34a;

    --container: 1200px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm:
        0 4px 15px rgba(0, 0, 0, 0.05);

    --shadow-md:
        0 12px 35px rgba(0, 0, 0, 0.08);

    --shadow-lg:
        0 20px 60px rgba(0, 0, 0, 0.12);

    --transition:
        all 0.3s ease;
}


/* =========================================================
   GLOBAL HOME STYLES
========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}

.section {
    padding: 100px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--secondary);

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(
        30px,
        4vw,
        46px
    );

    line-height: 1.15;
    letter-spacing: -1px;
}

.section-heading p {
    margin: 18px auto 0;

    max-width: 650px;

    color: var(--text-light);

    font-size: 17px;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
    position: relative;

    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;

    padding:
        90px 0
        100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(79, 70, 229, 0.10),
            transparent 30%
        ),

        radial-gradient(
            circle at 10% 90%,
            rgba(14, 165, 233, 0.08),
            transparent 30%
        );
}

.hero-container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);

    align-items: center;

    gap: 80px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    max-width: 720px;
}

.hero-intro {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--secondary);

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 0.5px;
}

.hero-name {
    margin: 0;

    font-size: clamp(
        42px,
        6vw,
        76px
    );

    line-height: 1.03;

    letter-spacing: -2.5px;

    font-weight: 800;
}


/* =========================================================
   DESIGNATION ANIMATION
========================================================= */

.hero-designation {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 22px;

    font-size: clamp(
        23px,
        3vw,
        34px
    );

    font-weight: 700;
}

.designation-label {
    color: var(--text);
    white-space: nowrap;
}

.designation-text {
    display: inline-block;

    min-width: 230px;

    color: var(--secondary);

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.designation-hide {
    opacity: 0;

    transform:
        translateY(-20px);
}

.designation-show {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-description {
    max-width: 650px;

    margin: 25px 0 0;

    color: var(--text-light);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 32px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding:
        0 25px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.btn:hover {
    transform:
        translateY(-3px);
}

.btn-primary {
    color: #ffffff;

    background:
        var(--primary);

    box-shadow:
        0 10px 25px
        rgba(17, 24, 39, 0.15);
}

.btn-primary:hover {
    box-shadow:
        0 15px 30px
        rgba(17, 24, 39, 0.20);
}

.btn-outline {
    color: var(--primary);

    background:
        transparent;

    border:
        1px solid var(--border);
}

.btn-outline:hover {
    color: var(--secondary);

    border-color:
        var(--secondary);

    background:
        var(--secondary-light);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.hero-social-links {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;
}

.hero-social-links a {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 50%;

    color: var(--text);

    text-decoration: none;

    font-size: 12px;

    overflow: hidden;

    transition:
        var(--transition);
}

.hero-social-links a:hover {
    color: #ffffff;

    background:
        var(--primary);

    border-color:
        var(--primary);

    transform:
        translateY(-3px);
}

.hero-social-links img {
    width: 18px;
    height: 18px;

    object-fit: contain;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    display: flex;

    align-items: center;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;

    width:
        min(400px, 80vw);

    aspect-ratio:
        1 / 1;

    padding: 10px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            #06b6d4
        );

    box-shadow:
        0 25px 70px
        rgba(79, 70, 229, 0.20);
}

.profile-image-wrapper::before {
    content: "";

    position: absolute;

    inset: -18px;

    border:
        1px solid
        rgba(79, 70, 229, 0.15);

    border-radius: 50%;

    animation:
        profileRing 6s
        linear infinite;
}

.profile-image-wrapper img {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    background:
        #ffffff;

    border:
        6px solid
        #ffffff;
}

@keyframes profileRing {

    0% {
        transform:
            rotate(0deg);
    }

    100% {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   STATISTICS
========================================================= */

.statistics-section {
    padding:
        30px 0
        70px;

    background:
        var(--background);
}

.statistics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.stat-card {
    padding: 30px 20px;

    text-align: center;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    transition:
        var(--transition);
}

.stat-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-md);
}

.stat-icon {
    margin-bottom: 10px;

    color:
        var(--secondary);

    font-size: 25px;
}

.stat-number {
    font-size: 36px;

    font-weight: 800;

    line-height: 1.2;
}

.stat-number span {
    color:
        var(--secondary);
}

.stat-title {
    margin-top: 8px;

    color:
        var(--text-light);

    font-size: 14px;
}


/* =========================================================
   ABOUT
========================================================= */

.about-preview {
    background:
        var(--background-light);
}

.about-preview-content {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.about-text p {
    margin: 0;

    color:
        var(--text-light);

    font-size: 18px;

    line-height: 1.9;
}

.text-link {
    display: inline-block;

    margin-top: 20px;

    color:
        var(--secondary);

    text-decoration: none;

    font-weight: 700;

    transition:
        var(--transition);
}

.text-link:hover {
    transform:
        translateX(4px);
}


/* =========================================================
   SKILLS
========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.skill-card {
    padding: 28px;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    transition:
        var(--transition);
}

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

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(79, 70, 229, 0.25);
}

.skill-icon {
    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background:
        var(--secondary-light);
}

.skill-icon img {
    width: 28px;
    height: 28px;

    object-fit: contain;
}

.skill-card h3 {
    margin: 0;

    font-size: 17px;
}

.skill-progress {
    width: 100%;

    height: 6px;

    margin-top: 18px;

    overflow: hidden;

    border-radius: 10px;

    background:
        #e5e7eb;
}

.skill-progress-bar {
    height: 100%;

    border-radius: inherit;

    background:
        var(--secondary);
}

.skill-percentage {
    display: block;

    margin-top: 7px;

    color:
        var(--text-light);

    font-size: 12px;

    text-align: right;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-section {
    background:
        var(--background-light);
}

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    transition:
        var(--transition);
}

.project-card:hover {
    transform:
        translateY(-8px);

    box-shadow:
        var(--shadow-lg);
}

.project-image {
    width: 100%;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background:
        var(--background-light);
}

.project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

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

.project-content {
    padding: 25px;
}

.project-category {
    display: inline-block;

    margin-bottom: 8px;

    color:
        var(--secondary);

    font-size: 12px;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}

.project-content h3 {
    margin: 0;

    font-size: 21px;

    line-height: 1.3;
}

.project-content p {
    margin: 12px 0 0;

    color:
        var(--text-light);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SERVICES
========================================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 32px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        #ffffff;

    transition:
        var(--transition);
}

.service-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-md);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 15px;

    color:
        var(--secondary);

    background:
        var(--secondary-light);

    font-size: 22px;
}

.service-card h3 {
    margin: 0;

    font-size: 20px;
}

.service-card p {
    margin: 12px 0 0;

    color:
        var(--text-light);

    line-height: 1.7;
}


/* =========================================================
   PUBLICATIONS
========================================================= */

.publications-section {
    background:
        var(--background-light);
}

.publications-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

.publication-card {
    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    transition:
        var(--transition);
}

.publication-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-md);
}

.publication-cover {
    aspect-ratio:
        3 / 4;

    overflow: hidden;

    background:
        var(--background-light);
}

.publication-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.publication-card:hover
.publication-cover img {
    transform:
        scale(1.04);
}

.publication-content {
    padding: 22px;
}

.publication-content > span {
    color:
        var(--secondary);

    font-size: 11px;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}

.publication-content h3 {
    margin:
        8px 0 0;

    font-size: 18px;

    line-height: 1.4;
}

.publication-content p {
    color:
        var(--text-light);

    font-size: 14px;
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.achievements-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.achievement-card {
    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        #ffffff;

    transition:
        var(--transition);
}

.achievement-card:hover {
    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow-md);
}

.achievement-image {
    aspect-ratio:
        16 / 10;

    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.achievement-content {
    padding: 25px;
}

.achievement-content h3 {
    margin: 0;

    font-size: 19px;
}

.achievement-content span {
    display: block;

    margin-top: 5px;

    color:
        var(--secondary);

    font-size: 14px;

    font-weight: 600;
}

.achievement-content p {
    margin:
        12px 0 0;

    color:
        var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   BLOG
========================================================= */

.blog-section {
    background:
        var(--background-light);
}

.blog-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.blog-card {
    overflow: hidden;

    background:
        #ffffff;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    transition:
        var(--transition);
}

.blog-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-md);
}

.blog-image {
    aspect-ratio:
        16 / 9;

    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

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

.blog-content {
    padding: 25px;
}

.blog-category {
    color:
        var(--secondary);

    font-size: 12px;

    font-weight: 700;

    text-transform:
        uppercase;

    letter-spacing:
        1px;
}

.blog-content h3 {
    margin:
        8px 0 0;

    font-size: 21px;

    line-height: 1.35;
}

.blog-content p {
    margin:
        12px 0 0;

    color:
        var(--text-light);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SECTION ACTION
========================================================= */

.section-action {
    margin-top: 45px;

    display: flex;

    justify-content: center;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding:
        50px 20px;

    text-align: center;

    color:
        var(--text-light);

    border:
        1px dashed var(--border);

    border-radius:
        var(--radius-md);
}


/* =========================================================
   CONTACT CTA
========================================================= */

.contact-cta {
    padding:
        100px 0;

    background:
        var(--primary);

    color:
        #ffffff;

    text-align:
        center;
}

.contact-cta-content {
    max-width:
        750px;

    margin:
        0 auto;
}

.contact-cta .section-label {
    color:
        #a5b4fc;
}

.contact-cta h2 {
    margin:
        10px 0 0;

    font-size:
        clamp(
            32px,
            5vw,
            52px
        );

    line-height:
        1.15;
}

.contact-cta p {
    margin:
        20px auto 30px;

    max-width:
        600px;

    color:
        #d1d5db;

    font-size:
        17px;
}

.contact-cta .btn-primary {
    color:
        var(--primary);

    background:
        #ffffff;

    box-shadow:
        none;
}

.contact-cta .btn-primary:hover {
    background:
        #f3f4f6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .hero-container {
        gap: 50px;
    }

    .statistics-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .publications-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .achievements-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }

    .section {
        padding:
            75px 0;
    }


    /* HERO */

    .hero-section {
        min-height:
            auto;

        padding:
            65px 0
            80px;

        text-align:
            center;
    }

    .hero-container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );

        grid-template-columns:
            1fr;

        gap:
            50px;
    }

    .hero-content {
        max-width:
            100%;
    }

    .hero-name {
        font-size:
            clamp(
                38px,
                11vw,
                58px
            );

        letter-spacing:
            -1.5px;
    }

    .hero-designation {
        justify-content:
            center;

        min-height:
            50px;

        font-size:
            22px;
    }

    .designation-text {
        min-width:
            0;
    }

    .hero-description {
        font-size:
            16px;
    }

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

    .hero-social-links {
        justify-content:
            center;
    }

    .hero-image {
        order:
            -1;
    }

    .profile-image-wrapper {
        width:
            250px;
    }


    /* STATISTICS */

    .statistics-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            12px;
    }

    .stat-card {
        padding:
            22px 12px;
    }

    .stat-number {
        font-size:
            28px;
    }


    /* SECTION HEADING */

    .section-heading {
        margin-bottom:
            40px;
    }

    .section-heading h2 {
        font-size:
            32px;
    }


    /* SKILLS */

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            14px;
    }

    .skill-card {
        padding:
            20px;
    }


    /* PROJECTS */

    .projects-grid {
        grid-template-columns:
            1fr;

        gap:
            20px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    /* PUBLICATIONS */

    .publications-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            15px;
    }

    .publication-content {
        padding:
            18px;
    }


    /* ACHIEVEMENTS */

    .achievements-grid {
        grid-template-columns:
            1fr;

        gap:
            18px;
    }


    /* BLOG */

    .blog-grid {
        grid-template-columns:
            1fr;

        gap:
            20px;
    }


    /* CTA */

    .contact-cta {
        padding:
            75px 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hero-name {
        font-size:
            38px;
    }

    .hero-designation {
        font-size:
            20px;

        gap:
            7px;
    }

    .hero-description {
        font-size:
            15px;
    }

    .btn {
        width:
            100%;

        padding:
            0 20px;
    }

    .hero-buttons {
        flex-direction:
            column;
    }

    .statistics-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .skills-grid {
        grid-template-columns:
            1fr;
    }

    .publications-grid {
        grid-template-columns:
            1fr;
    }

    .profile-image-wrapper {
        width:
            220px;
    }

    .contact-cta h2 {
        font-size:
            32px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}