/* =========================================================
   PYSCRIPT STUDIO
   MAIN STYLESHEET
========================================================= */

:root {

    --ps-navy: #0b1d33;
    --ps-navy-dark: #061221;
    --ps-blue: #063f5a;
    --ps-orange: #f9a51a;
    --ps-orange-dark: #df8d00;

    --white: #ffffff;
    --light: #f6f8fb;
    --text: #172033;
    --muted: #667085;
    --border: #e6eaf0;

    --shadow:
        0 20px 50px rgba(11, 29, 51, 0.10);

    --transition:
        all 0.3s ease;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    font-family:
        "Inter",
        sans-serif;

    color: var(--text);

    background: var(--white);

    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

section {
    scroll-margin-top: 90px;
}


/* =========================================================
   LOADER
========================================================= */

#pageLoader {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #102945 0%,
            var(--ps-navy-dark) 55%,
            #030a12 100%
        );

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

#pageLoader.loader-hidden {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


.loader-content {

    width: min(500px, 90%);

    text-align: center;

    color: white;
}


.loader-logo {

    width: 240px;

    height: auto;

    margin-bottom: 25px;

    animation:
        loaderLogo 1.5s ease-in-out infinite alternate;
}


@keyframes loaderLogo {

    from {
        transform: scale(0.96);
    }

    to {
        transform: scale(1.02);
    }

}


.loader-brand {

    font-size: 2rem;

    font-weight: 800;

    letter-spacing: -1px;
}


.loader-tagline {

    margin-top: 8px;

    color: var(--ps-orange);

    font-size: 0.9rem;

}


.loader-tagline span {
    margin: 0 5px;
}


.loader-line {

    height: 3px;

    width: 220px;

    background: rgba(255,255,255,0.12);

    margin: 28px auto 12px;

    overflow: hidden;
}


.loader-progress {

    height: 100%;

    width: 0;

    background: var(--ps-orange);

    animation:
        loadingProgress 1.4s ease forwards;
}


@keyframes loadingProgress {

    to {
        width: 100%;
    }

}


.loader-status {

    font-size: 0.7rem;

    color: rgba(255,255,255,0.55);

    letter-spacing: 1px;
}


/* =========================================================
   NAVBAR
========================================================= */

#mainNavbar {

    padding:
        15px 0;

    background:
        rgba(255,255,255,0.96);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid transparent;

    transition:
        var(--transition);
}


#mainNavbar.scrolled {

    padding:
        9px 0;

    border-bottom-color:
        var(--border);

    box-shadow:
        0 5px 25px rgba(11,29,51,0.06);
}


.navbar-logo {

    width: 230px;

    height: auto;
}


.navbar-nav {

    gap: 5px;
}


.nav-link {

    color: var(--ps-navy);

    font-size: 0.9rem;

    font-weight: 600;

    padding:
        10px 13px !important;

    transition:
        var(--transition);
}


.nav-link:hover,
.nav-link.active {

    color:
        var(--ps-orange);
}


.dropdown-menu {

    border: 0;

    border-radius: 12px;

    padding: 10px;

    box-shadow:
        var(--shadow);
}


.dropdown-item {

    padding: 10px 14px;

    border-radius: 8px;

    font-size: 0.85rem;

}


.dropdown-item:hover {

    background:
        rgba(249,165,26,0.10);

    color:
        var(--ps-orange-dark);
}


.btn-primary-custom {

    border: 0;

    color: var(--ps-navy);

    background:
        var(--ps-orange);

    font-weight: 700;

    border-radius: 8px;

    padding:
        12px 22px;

    transition:
        var(--transition);
}


.btn-primary-custom:hover {

    color: var(--white);

    background:
        var(--ps-navy);

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(11,29,51,0.15);
}


.btn-outline-custom {

    color:
        var(--ps-navy);

    border:
        1px solid var(--ps-navy);

    font-weight: 700;

    border-radius: 8px;

    padding:
        12px 22px;

    transition:
        var(--transition);
}


.btn-outline-custom:hover {

    color: white;

    background:
        var(--ps-navy);

}


/* =========================================================
   HERO
========================================================= */

.hero-section {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f7f9fc 0%,
            #ffffff 60%,
            #f8f5ee 100%
        );

}


.hero-grid {

    position: absolute;

    inset: 0;

    opacity: 0.35;

    background-image:
        linear-gradient(
            rgba(11,29,51,0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(11,29,51,0.05) 1px,
            transparent 1px
        );

    background-size:
        50px 50px;

}


.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        8px 14px;

    margin-bottom: 25px;

    border-radius: 50px;

    background:
        rgba(249,165,26,0.12);

    color:
        var(--ps-orange-dark);

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.pulse-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background:
        var(--ps-orange);

    animation:
        pulse 1.5s infinite;
}


@keyframes pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(249,165,26,0.5);
    }

    70% {
        box-shadow:
            0 0 0 10px rgba(249,165,26,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(249,165,26,0);
    }

}


.hero-title {

    max-width: 750px;

    font-size:
        clamp(3.2rem, 7vw, 6.5rem);

    line-height: 0.95;

    letter-spacing:
        -0.065em;

    font-weight: 900;

    color:
        var(--ps-navy);

    margin-bottom: 30px;
}


.hero-title span {

    color:
        var(--ps-orange);

}


.hero-text {

    max-width: 650px;

    color:
        var(--muted);

    font-size:
        clamp(1rem, 2vw, 1.2rem);

    line-height: 1.8;

    margin-bottom: 35px;
}


.hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}


.hero-stats {

    display: flex;

    gap: 35px;

    margin-top: 55px;

    flex-wrap: wrap;
}


.hero-stat {

    display: flex;

    flex-direction: column;
}


.hero-stat strong {

    font-size: 1.1rem;

    color:
        var(--ps-navy);
}


.hero-stat span {

    color:
        var(--muted);

    font-size: 0.75rem;
}


/* =========================================================
   HERO CODE WINDOW
========================================================= */

.hero-visual {

    position: relative;

    padding:
        30px;
}


.code-window {

    position: relative;

    background:
        #071525;

    border-radius:
        16px;

    overflow: hidden;

    box-shadow:
        0 35px 80px rgba(7,21,37,0.25);

    transform:
        perspective(1000px)
        rotateY(-5deg);

    animation:
        floatWindow 5s ease-in-out infinite;
}


@keyframes floatWindow {

    0%, 100% {
        transform:
            perspective(1000px)
            rotateY(-5deg)
            translateY(0);
    }

    50% {
        transform:
            perspective(1000px)
            rotateY(-5deg)
            translateY(-12px);
    }

}


.code-header {

    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        15px 18px;

    background:
        #0d2035;

    color:
        rgba(255,255,255,0.5);

    font-size:
        0.75rem;
}


.window-buttons {

    display: flex;

    gap: 6px;
}


.window-buttons span {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.25);
}


.code-title {
    margin-left: auto;
    margin-right: auto;
}


.code-body {

    padding:
        30px 25px;

    min-height:
        350px;

    color:
        #b7c7d9;

    font-family:
        "Courier New",
        monospace;

    font-size:
        0.82rem;

    line-height:
        2;
}


.code-number {

    display: inline-block;

    width: 28px;

    color:
        #43566b;
}


.code-keyword {
    color:
        #f9a51a;
}


.code-function {
    color:
        #62c4ff;
}


.code-string {
    color:
        #7cda9c;
}


.indent {
    margin-left:
        28px;
}


.terminal-line {

    color:
        #7cda9c;

    margin-top:
        20px;
}


.terminal-line > span:first-child {

    color:
        var(--ps-orange);

    margin-right:
        8px;
}


.cursor {

    display: inline-block;

    width: 7px;

    height: 15px;

    margin-left: 5px;

    vertical-align: middle;

    background:
        var(--ps-orange);

    animation:
        blink 1s infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }

}


.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        14px 18px;

    border-radius:
        12px;

    background:
        white;

    box-shadow:
        0 20px 40px rgba(11,29,51,0.15);

    animation:
        floatCard 4s ease-in-out infinite;
}


.floating-card i {

    color:
        var(--ps-orange);

    font-size:
        1.4rem;
}


.floating-card strong {

    display: block;

    color:
        var(--ps-navy);

    font-size:
        0.8rem;
}


.floating-card small {

    color:
        var(--muted);

    font-size:
        0.65rem;
}


.card-one {

    top:
        10%;

    left:
        -10%;
}


.card-two {

    bottom:
        8%;

    right:
        -10%;

    animation-delay:
        1s;
}


@keyframes floatCard {

    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-10px);
    }

}


/* =========================================================
   SECTIONS
========================================================= */

.section-padding {

    padding:
        110px 0;
}


.section-label {

    color:
        var(--ps-orange-dark);

    font-size:
        0.72rem;

    font-weight:
        800;

    letter-spacing:
        2px;

    margin-bottom:
        15px;
}


.section-title {

    max-width:
        700px;

    color:
        var(--ps-navy);

    font-size:
        clamp(2.2rem, 5vw, 4rem);

    line-height:
        1.05;

    letter-spacing:
        -0.04em;

    font-weight:
        850;

    margin-bottom:
        25px;
}


.section-title span {

    color:
        var(--ps-orange);
}


.section-text {

    color:
        var(--muted);

    line-height:
        1.8;

    margin-bottom:
        18px;
}


.section-heading {

    max-width:
        800px;

    margin:
        0 auto 60px;
}


.section-heading .section-title {

    margin-left:
        auto;

    margin-right:
        auto;
}


.section-intro {

    color:
        var(--muted);

    line-height:
        1.8;
}


/* =========================================================
   ABOUT
========================================================= */

.about-features {

    margin-top:
        35px;
}


.about-feature {

    display:
        flex;

    gap:
        15px;

    margin-bottom:
        22px;
}


.feature-icon {

    flex:
        0 0 38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        10px;

    color:
        var(--ps-orange);

    background:
        rgba(249,165,26,0.12);
}


.about-feature strong {

    display:
        block;

    color:
        var(--ps-navy);

    margin-bottom:
        3px;
}


.about-feature p {

    margin:
        0;

    color:
        var(--muted);

    font-size:
        0.85rem;

    line-height:
        1.6;
}


.about-visual {

    position:
        relative;

    min-height:
        500px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        linear-gradient(
            145deg,
            #f7f9fc,
            #eef2f7
        );

    border-radius:
        25px;

    overflow:
        hidden;
}


.about-logo-wrapper {

    width:
        70%;

    animation:
        aboutLogo 5s ease-in-out infinite;
}


@keyframes aboutLogo {

    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-15px);
    }

}


.experience-card {

    position:
        absolute;

    bottom:
        30px;

    left:
        30px;

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    padding:
        15px 20px;

    border-radius:
        14px;

    background:
        var(--ps-navy);

    color:
        white;

    box-shadow:
        var(--shadow);
}


.experience-number {

    color:
        var(--ps-orange);

    font-size:
        1.8rem;

    font-weight:
        900;
}


.experience-card strong {

    display:
        block;
}


.experience-card span {

    color:
        rgba(255,255,255,0.6);

    font-size:
        0.75rem;
}


/* =========================================================
   SERVICES
========================================================= */

.services-section {

    background:
        var(--light);
}


.service-card {

    position:
        relative;

    height:
        100%;

    padding:
        35px;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    background:
        white;

    overflow:
        hidden;

    transition:
        var(--transition);
}


.service-card::after {

    content:
        "";

    position:
        absolute;

    width:
        130px;

    height:
        130px;

    right:
        -70px;

    bottom:
        -70px;

    border-radius:
        50%;

    background:
        rgba(249,165,26,0.07);

    transition:
        var(--transition);
}


.service-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(249,165,26,0.4);

    box-shadow:
        var(--shadow);
}


.service-card:hover::after {

    transform:
        scale(1.5);
}


.service-icon {

    width:
        58px;

    height:
        58px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        14px;

    color:
        var(--ps-orange);

    background:
        rgba(249,165,26,0.12);

    font-size:
        1.6rem;

    margin-bottom:
        25px;
}


.service-number {

    position:
        absolute;

    top:
        30px;

    right:
        30px;

    color:
        #dce2e9;

    font-weight:
        900;

    font-size:
        1.1rem;
}


.service-card h3 {

    color:
        var(--ps-navy);

    font-size:
        1.25rem;

    margin-bottom:
        15px;
}


.service-card p {

    color:
        var(--muted);

    font-size:
        0.88rem;

    line-height:
        1.75;

    margin-bottom:
        25px;
}


.service-link {

    color:
        var(--ps-navy);

    font-weight:
        700;

    font-size:
        0.8rem;

    transition:
        var(--transition);
}


.service-link i {

    color:
        var(--ps-orange);

    margin-left:
        5px;
}


.service-link:hover {

    color:
        var(--ps-orange);
}


/* =========================================================
   PYTHON SECTION
========================================================= */

.python-section {

    padding:
        120px 0;

    background:
        var(--ps-navy);

    overflow:
        hidden;
}


.light-label {

    color:
        var(--ps-orange);
}


.light-title {

    color:
        white;
}


.python-text {

    color:
        rgba(255,255,255,0.65);

    line-height:
        1.8;

    max-width:
        600px;

    margin-bottom:
        25px;
}


.python-points {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        15px;

    margin-bottom:
        35px;
}


.python-points div {

    color:
        rgba(255,255,255,0.8);

    font-size:
        0.85rem;
}


.python-points i {

    color:
        var(--ps-orange);

    margin-right:
        8px;
}


/* Terminal */

.python-terminal {

    background:
        #030b14;

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius:
        16px;

    overflow:
        hidden;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.3);
}


.terminal-top {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    padding:
        15px 20px;

    background:
        #0a1725;

    color:
        rgba(255,255,255,0.4);

    font-family:
        monospace;

    font-size:
        0.75rem;
}


.terminal-top .window-buttons {

    margin-right:
        auto;
}


.terminal-content {

    padding:
        30px;

    min-height:
        330px;

    color:
        #d4e1ed;

    font-family:
        monospace;

    line-height:
        1.8;
}


.terminal-output {

    color:
        #8b9aab;

    margin-left:
        25px;
}


.terminal-green {

    color:
        #7cda9c;
}


.terminal-output.success {

    color:
        #7cda9c;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-card {

    height:
        100%;

    overflow:
        hidden;

    border-radius:
        18px;

    border:
        1px solid var(--border);

    background:
        white;

    transition:
        var(--transition);
}


.portfolio-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);
}


.portfolio-image {

    height:
        230px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        4rem;

    color:
        var(--ps-orange);
}


.portfolio-web {

    background:
        linear-gradient(
            135deg,
            #0b1d33,
            #16496a
        );
}


.portfolio-python {

    background:
        linear-gradient(
            135deg,
            #102e2a,
            #173e5b
        );
}


.portfolio-training {

    background:
        linear-gradient(
            135deg,
            #493518,
            #0b1d33
        );
}


.portfolio-content {

    padding:
        25px;
}


.portfolio-content > span {

    color:
        var(--ps-orange-dark);

    font-size:
        0.65rem;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.portfolio-content h3 {

    color:
        var(--ps-navy);

    font-size:
        1.2rem;

    margin:
        8px 0 10px;
}


.portfolio-content p {

    color:
        var(--muted);

    font-size:
        0.85rem;

    line-height:
        1.7;

    margin:
        0;
}


/* =========================================================
   PRICING CTA
========================================================= */

.pricing-section {

    padding:
        85px 0;

    background:
        var(--ps-orange);
}


.pricing-title {

    color:
        var(--ps-navy);

    font-size:
        clamp(2.5rem, 5vw, 4.5rem);

    font-weight:
        900;

    letter-spacing:
        -0.05em;

    margin-bottom:
        15px;
}


.pricing-title span {

    display:
        block;

    color:
        white;
}


.pricing-section p {

    max-width:
        650px;

    color:
        rgba(11,29,51,0.7);

    line-height:
        1.7;

    margin:
        0;
}


.btn-light {

    color:
        var(--ps-navy);

    border:
        0;

    font-weight:
        700;

    padding:
        14px 25px;

    border-radius:
        8px;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {

    background:
        #f8fafc;
}


.contact-details {

    margin-top:
        35px;
}


.contact-item {

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    margin-bottom:
        25px;
}


.contact-icon {

    width:
        45px;

    height:
        45px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex:
        0 0 45px;

    border-radius:
        12px;

    color:
        var(--ps-orange);

    background:
        white;

    box-shadow:
        0 5px 20px rgba(11,29,51,0.07);
}


.contact-item small {

    display:
        block;

    color:
        var(--muted);

    font-size:
        0.7rem;

    margin-bottom:
        3px;
}


.contact-item a,
.contact-item span {

    color:
        var(--ps-navy);

    font-size:
        0.85rem;

    font-weight:
        600;
}


.contact-form-card {

    padding:
        40px;

    border-radius:
        20px;

    background:
        white;

    box-shadow:
        var(--shadow);
}


.form-label {

    color:
        var(--ps-navy);

    font-size:
        0.78rem;

    font-weight:
        700;
}


.form-control,
.form-select {

    border:
        1px solid var(--border);

    border-radius:
        9px;

    padding:
        13px 15px;

    font-size:
        0.85rem;

    transition:
        var(--transition);
}


.form-control:focus,
.form-select:focus {

    border-color:
        var(--ps-orange);

    box-shadow:
        0 0 0 4px rgba(249,165,26,0.1);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding:
        75px 0 25px;

    background:
        var(--ps-navy-dark);

    color:
        white;
}


.footer-logo {

    width:
        280px;

    filter:
        brightness(0) invert(1);

    margin-bottom:
        25px;
}


.footer-description {

    max-width:
        450px;

    color:
        rgba(255,255,255,0.55);

    font-size:
        0.85rem;

    line-height:
        1.8;
}


.site-footer h5 {

    font-size:
        0.85rem;

    margin-bottom:
        20px;
}


.site-footer ul {

    padding:
        0;

    margin:
        0;

    list-style:
        none;
}


.site-footer li {

    margin-bottom:
        11px;
}


.site-footer li a {

    color:
        rgba(255,255,255,0.55);

    font-size:
        0.78rem;

    transition:
        var(--transition);
}


.site-footer li a:hover {

    color:
        var(--ps-orange);
}


.footer-contact {

    color:
        rgba(255,255,255,0.55);

    font-size:
        0.8rem;
}


.footer-cta {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        10px;

    color:
        var(--ps-orange);

    font-size:
        0.8rem;

    font-weight:
        700;
}


.social-links {

    display:
        flex;

    gap:
        10px;

    margin-top:
        25px;
}


.social-links a {

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        white;

    background:
        rgba(255,255,255,0.07);

    border-radius:
        8px;

    transition:
        var(--transition);
}


.social-links a:hover {

    color:
        var(--ps-navy);

    background:
        var(--ps-orange);

    transform:
        translateY(-3px);
}


.site-footer hr {

    margin:
        50px 0 25px;

    border-color:
        rgba(255,255,255,0.1);
}


.footer-bottom {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    flex-wrap:
        wrap;
}


.footer-bottom p {

    margin:
        0;

    color:
        rgba(255,255,255,0.4);

    font-size:
        0.7rem;
}


/* =========================================================
   BACK TO TOP
========================================================= */

#backToTop {

    position:
        fixed;

    right:
        25px;

    bottom:
        25px;

    width:
        45px;

    height:
        45px;

    border:
        0;

    border-radius:
        10px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    color:
        var(--ps-navy);

    background:
        var(--ps-orange);

    box-shadow:
        0 10px 30px rgba(11,29,51,0.15);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(20px);

    transition:
        var(--transition);

    z-index:
        1000;
}


#backToTop.show {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .navbar-logo {
        width: 190px;
    }

    .navbar-collapse {

        margin-top:
            15px;

        padding:
            15px;

        border-radius:
            12px;

        background:
            white;

        box-shadow:
            var(--shadow);
    }

    .hero-section {
        padding-top:
            100px;
    }

    .hero-visual {
        margin-top:
            50px;
    }

    .card-one {
        left:
            0;
    }

    .card-two {
        right:
            0;
    }

}


@media (max-width: 767px) {

    .section-padding {
        padding:
            75px 0;
    }

    .hero-title {
        font-size:
            3.3rem;
    }

    .hero-stats {
        gap:
            20px;
    }

    .code-window {
        transform:
            none;
    }

    .python-points {
        grid-template-columns:
            1fr;
    }

    .about-visual {
        min-height:
            350px;
    }

    .contact-form-card {
        padding:
            25px;
    }

    .footer-bottom {
        flex-direction:
            column;
    }

}


@media (max-width: 480px) {

    .navbar-logo {
        width:
            160px;
    }

    .hero-title {
        font-size:
            2.8rem;
    }

    .hero-buttons {
        flex-direction:
            column;
    }

    .hero-buttons .btn {
        width:
            100%;
    }

    .hero-visual {
        padding:
            10px;
    }

    .code-body {
        padding:
            20px 15px;

        font-size:
            0.68rem;
    }

    .floating-card {
        display:
            none;
    }

    .footer-logo {
        width:
            220px;
    }

}