/*
Theme Name: Professor Portfolio
Author: Shivam
Description: Custom responsive WordPress portfolio theme for a professor website.
Version: 1.9.1
Text Domain: portfolio
*/


/* =========================================================
   1. GLOBAL RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    margin: 0;
    padding: 0;

    width: 100%;

    scroll-behavior: smooth;

    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body,
button,
input,
select,
textarea {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;

    font-family:
        'Roboto',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.6;

    color: #1f2937;
    background: #ffffff;

    overflow-x: hidden;
}


h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}


img,
picture,
video,
canvas,
svg {
    display: block;

    max-width: 100%;
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


a {
    color: inherit;
}


button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   2. GLOBAL TYPOGRAPHY
========================================================= */

p,
li,
a,
button,
input,
textarea,
select,
label {
    font-size: 1rem;
}


h1 {
    font-size: 2.75rem;
    line-height: 1.15;
}


h2 {
    font-size: 2.1rem;
    line-height: 1.2;
}


h3 {
    font-size: 1.55rem;
    line-height: 1.3;
}


h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}


h5 {
    font-size: 1.1rem;
}


h6 {
    font-size: 1rem;
}


/* =========================================================
   3. GLOBAL CONTAINER
========================================================= */

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

    margin-inline: auto;
}


/* =========================================================
   4. GLOBAL SECTION
========================================================= */

section {
    position: relative;
    width: 100%;
}


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


/* =========================================================
   5. ACCESSIBILITY
========================================================= */

:focus-visible {
    outline: 3px solid #06b6d4;
    outline-offset: 3px;
}


.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


.screen-reader-text:focus {
    position: fixed !important;

    top: 10px;
    left: 10px;

    z-index: 100000;

    width: auto;
    height: auto;

    padding: 12px 16px;
    margin: 0;

    clip: auto !important;
    clip-path: none;

    background: #ffffff;
    color: #0f172a;

    border-radius: 6px;

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

    box-shadow:
        0 6px 20px
        rgba(15, 23, 42, .15);
}


.skip-link {
    position: absolute;

    left: -9999px;
    top: 0;

    z-index: 100000;
}


.skip-link:focus {
    left: 16px;
    top: 16px;

    padding: 10px 16px;

    background: #ffffff;
    color: #0f172a;

    border-radius: 6px;

    font-size: 14px;

    box-shadow:
        0 5px 20px
        rgba(15, 23, 42, .15);
}


/* =========================================================
   6. GLOBAL HEADER / FOOTER FONT
========================================================= */

.site-header,
.site-footer,
.site-header *,
.site-footer * {
    font-family:
        'Roboto',
        sans-serif;
}


/* =========================================================
   7. HEADER
========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 9999;

    width: 100%;

    background:
        rgba(
            255,
            255,
            255,
            .97
        );

    border-bottom:
        3px solid #06b6d4;

    box-shadow:
        0 3px 15px
        rgba(
            15,
            23,
            42,
            .05
        );

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* WordPress Admin Bar */

.admin-bar .site-header {
    top: 32px;
}


.site-header-inner {
    width: 100%;
    max-width: 1500px;

    min-height: 68px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;

    align-items: center;

    gap: 25px;
}


/* =========================================================
   8. LOGO
========================================================= */

.site-logo {
    flex-shrink: 0;

    color: #0f172a;

    text-decoration: none;

    transition:
        color .2s ease;
}


.site-logo-name {
    display: block;

    font-size: 20px;
    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -.3px;

    white-space: nowrap;
}


.site-logo:hover {
    color: #06b6d4;
}


/* =========================================================
   9. DESKTOP NAVIGATION
========================================================= */

.desktop-navigation {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 4px;

    white-space: nowrap;
}


.desktop-navigation a {
    position: relative;

    display: block;

    padding:
        23px 9px
        21px;

    color: #1f2937;

    text-decoration: none;

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

    line-height: 1.4;

    transition:
        color .2s ease,
        background .2s ease;
}


.desktop-navigation a:hover {
    color: #06b6d4;
}


.desktop-navigation a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 13px;

    width: 0;
    height: 2px;

    transform:
        translateX(-50%);

    border-radius: 3px;

    background: #06b6d4;

    transition:
        width .2s ease;
}


.desktop-navigation a:hover::after,
.desktop-navigation a.active::after {
    width:
        calc(
            100% - 18px
        );
}


.desktop-navigation a.active {
    color: #0891b2;
}


/* =========================================================
   10. MOBILE NAVIGATION
========================================================= */

.mobile-navigation {
    position: relative;

    display: none;

    margin-left: auto;
}


.mobile-navigation summary {
    list-style: none;

    cursor: pointer;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 9px 12px;

    border:
        1px solid #dbe4e8;

    border-radius: 8px;

    background: #ffffff;
    color: #0f172a;

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

    line-height: 1.2;

    user-select: none;
}


.mobile-navigation summary::-webkit-details-marker {
    display: none;
}


.mobile-navigation summary::marker {
    display: none;
    content: "";
}


.mobile-menu-icon {
    width: 19px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.mobile-menu-icon span {
    display: block;

    width: 100%;
    height: 2px;

    border-radius: 4px;

    background: #06b6d4;
}


.mobile-navigation-menu {
    position: absolute;

    top:
        calc(
            100% + 12px
        );

    right: 0;

    width: 275px;
    max-width:
        calc(
            100vw - 24px
        );

    max-height:
        calc(
            100vh - 100px
        );

    padding: 8px;

    overflow-y: auto;

    border:
        1px solid #dbe4e8;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 15px 40px
        rgba(
            15,
            23,
            42,
            .13
        );
}


.mobile-navigation-menu a {
    display: block;

    padding: 11px 12px;

    border-radius: 7px;

    color: #334155;

    text-decoration: none;

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

    line-height: 1.4;

    transition:
        background .2s ease,
        color .2s ease;
}


.mobile-navigation-menu a:hover,
.mobile-navigation-menu a:focus-visible {
    background: #ecfeff;
    color: #0891b2;
}


/* =========================================================
   11. FOOTER
========================================================= */

.site-footer {
    width: 100%;

    margin-top: 0;

    background: #0f172a;

    color: #cbd5e1;

    border-top:
        4px solid #06b6d4;
}


.site-footer-inner {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding:
        55px 25px
        35px;

    display: grid;

    grid-template-columns:
        1.4fr
        .75fr
        1fr;

    gap: 45px;
}


/* =========================================================
   12. FOOTER HEADINGS
========================================================= */

.footer-column h2 {
    margin:
        0 0 17px;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   13. FOOTER ABOUT
========================================================= */

.footer-about p {
    max-width: 530px;

    margin:
        0 0 9px;

    color: #94a3b8;

    font-size: 14px;
    line-height: 1.7;
}


.footer-about strong {
    color: #e2e8f0;
}


.footer-about a {
    color: #67e8f9;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}


.footer-about a:hover {
    text-decoration: underline;
}


.footer-email span {
    margin: 0 5px;
}


/* =========================================================
   14. FOOTER LINKS
========================================================= */

.footer-navigation {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.footer-navigation a {
    color: #94a3b8;

    text-decoration: none;

    font-size: 14px;
    line-height: 1.5;

    transition:
        color .2s ease,
        transform .2s ease;
}


.footer-navigation a:hover {
    color: #67e8f9;

    transform:
        translateX(3px);
}


/* =========================================================
   15. FOOTER QUERY FORM
========================================================= */

.footer-query p {
    margin:
        0 0 12px;

    color: #94a3b8;

    font-size: 14px;
    line-height: 1.6;
}


.footer-query-form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.footer-query-form textarea {
    width: 100%;
    min-height: 92px;

    resize: vertical;

    padding: 12px;

    border:
        1px solid #334155;

    border-radius: 8px;

    outline: none;

    background: #111c2f;
    color: #ffffff;

    font-family:
        'Roboto',
        sans-serif;

    font-size: 14px;
    line-height: 1.5;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.footer-query-form textarea::placeholder {
    color: #64748b;

    opacity: 1;
}


.footer-query-form textarea:focus {
    border-color: #06b6d4;

    box-shadow:
        0 0 0 3px
        rgba(
            6,
            182,
            212,
            .12
        );
}


.footer-query-button {
    align-self: flex-start;

    border: 0;

    padding: 10px 17px;

    border-radius: 8px;

    cursor: pointer;

    background: #06b6d4;

    color: #ffffff;

    font-family:
        'Roboto',
        sans-serif;

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

    line-height: 1.4;

    transition:
        background .2s ease,
        transform .2s ease;
}


.footer-query-button:hover {
    background: #0891b2;

    transform:
        translateY(-1px);
}


/* =========================================================
   16. FOOTER SOCIAL ICONS
========================================================= */

.footer-social {
    width: 100%;

    display: flex;

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

    flex-wrap: wrap;

    gap: 13px;

    padding:
        20px 12px
        25px;

    border-top:
        1px solid
        rgba(
            148,
            163,
            184,
            .12
        );
}


.footer-social a {
    width: 44px;
    height: 44px;

    display: flex;

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

    flex-shrink: 0;

    text-decoration: none;

    border-radius: 50%;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


.footer-social svg {
    width: 44px;
    height: 44px;

    display: block;

    flex-shrink: 0;
}


.footer-social a:hover {
    transform:
        translateY(-3px)
        scale(1.05);
}


/* =========================================================
   17. FOOTER BOTTOM
========================================================= */

.footer-bottom {
    padding:
        15px 15px
        18px;

    text-align: center;

    border-top:
        1px solid
        rgba(
            148,
            163,
            184,
            .12
        );
}


.footer-bottom p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   18. TABLET
========================================================= */

@media (max-width: 1250px) {

    .desktop-navigation {
        display: none;
    }


    .mobile-navigation {
        display: block;
    }

}


@media (max-width: 1024px) {

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


    .section-padding {
        padding: 64px 0;
    }


    h1 {
        font-size: 2.35rem;
    }


    h2 {
        font-size: 1.9rem;
    }


    h3 {
        font-size: 1.4rem;
    }

}


@media (max-width: 850px) {

    .site-footer-inner {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 32px;
    }


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

}


/* =========================================================
   19. MOBILE
   Minimum normal text size = 14px
========================================================= */

@media (max-width: 767px) {

    html {
        font-size: 14px;
    }


    body,
button,
input,
select,
textarea {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
        font-size: 14px;
        line-height: 1.6;
    }


    p,
    li,
    a,
    button,
    input,
    textarea,
    select,
    label {
        font-size: 14px;
    }


    .container {
        width:
            calc(
                100% - 32px
            );
    }


    .section-padding {
        padding: 48px 0;
    }


    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }


    h2 {
        font-size: 1.65rem;
        line-height: 1.25;
    }


    h3 {
        font-size: 1.35rem;
    }


    h4 {
        font-size: 1.15rem;
    }


    h5,
    h6 {
        font-size: 1rem;
    }


    .site-header-inner {
        min-height: 60px;

        padding:
            0 13px;

        gap: 12px;
    }


    .site-logo-name {
        font-size: 17px;
    }


    .mobile-menu-text,
    .mobile-navigation summary,
    .mobile-navigation-menu a {
        font-size: 14px;
    }


    .mobile-navigation-menu {
        width:
            min(
                300px,
                calc(100vw - 20px)
            );

        max-height:
            calc(
                100vh - 80px
            );
    }


    .site-footer-inner {
        padding:
            40px 16px
            28px;

        grid-template-columns:
            1fr;

        gap: 30px;
    }


    .footer-query {
        grid-column: auto;
    }


    .footer-column h2 {
        font-size: 18px;
    }


    .footer-about p,
    .footer-about a,
    .footer-navigation a,
    .footer-query p,
    .footer-query-form textarea,
    .footer-query-button,
    .footer-bottom p {
        font-size: 14px;
    }


    .footer-social {
        gap: 9px;

        padding:
            17px 8px
            20px;
    }


    .footer-social a,
    .footer-social svg {
        width: 38px;
        height: 38px;
    }

}


/* =========================================================
   WORDPRESS ADMIN BAR - MOBILE
========================================================= */

@media (max-width: 782px) {

    .admin-bar .site-header {
        top: 46px;
    }

}


/* =========================================================
   20. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container {
        width:
            calc(
                100% - 24px
            );
    }


    .section-padding {
        padding:
            40px 0;
    }


    .site-header-inner {
        padding:
            0 10px;
    }


    .site-logo-name {
        font-size: 16px;
    }


    .mobile-navigation summary {
        padding:
            8px 10px;

        font-size: 14px;
    }


    .mobile-navigation-menu {
        right: 0;

        width:
            calc(
                100vw - 20px
            );
    }


    .footer-social a,
    .footer-social svg {
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   21. VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .site-logo-name {
        font-size: 15px;
    }


    .mobile-navigation summary {
        padding:
            7px 8px;
    }


    .mobile-menu-icon {
        width: 17px;
    }


    .site-footer-inner {
        padding-left: 12px;
        padding-right: 12px;
    }


    .footer-social {
        gap: 7px;
    }


    .footer-social a,
    .footer-social svg {
        width: 34px;
        height: 34px;
    }

}


/* =========================================================
   22. REDUCED MOTION
========================================================= */

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

    html {
        scroll-behavior: auto;
    }


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

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }

}
/* Global mobile typography */
@media (max-width: 600px) {
    body { font-size: 12px; }
    button, input, select, textarea { font-size: 12px; }
}
