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

html, body {
    font-family: 'Inter', sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==============================
   COLOR VARIABLES
================================ */

:root {
    --primary: #ff8c1a;
    --secondary: #ff6a00;
    --bg-dark: #0a0a0a;
    --bg-light: #141414;
    --border-color: #2a2a2a;
    --text-muted: #9a9a9a;
}

/* ==============================
   GREEN GLOW EFFECT
================================ */

.glow-green {
    box-shadow: 0 16px 34px rgba(0,0,0,0.35), 0 0 22px rgba(255,140,26,0.35);
}

/* ==============================
   GLOBAL CONTAINER
================================ */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

@media (min-width: 1025px) {
    .site-header .container {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
    }
}

/* ==============================
   SITE WRAPPER
================================ */

.site-wrapper {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, #0d1117, #05080c);
    z-index: 0;
}

#techCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

/* ==============================
   HEADER
================================ */

.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.92) 0%, rgba(3,3,4,0.98) 100%);
    backdrop-filter: blur(8px);
    border-bottom: none;
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ==============================
   LOGO
================================ */

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.site-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.site-logo-mark {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 800;
}

.site-logo-text strong {
    display: block;
    font-size: 14px;
}

.site-logo-text small {
    font-size: 11px;
    color: #f59a3d;
    font-weight: 600;
}

/* ==============================
   NAVIGATION
================================ */

.main-nav .nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    color: #e6edf3;
    transition: 0.2s;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a.active {
    color: var(--primary);
}

/* ==============================
   DROPDOWN
================================ */

.has-dropdown {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: #e6edf3;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    background: var(--bg-light);
    border: none;
    border-radius: 6px;
    padding: 10px;
    display: none;
    flex-direction: column;
    min-width: 200px;
    z-index: 1000;
}

.has-dropdown:hover .nav-dropdown {
    display: flex;
}

.nav-dropdown a {
    padding: 8px 10px;
    font-size: 14px;
}

.nav-dropdown a:hover {
    background: rgba(255,255,255,0.05);
}

/* ==============================
   HEADER ACTIONS
================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cta {
    background: linear-gradient(45deg, #ff8c1a, #ff6a00);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(255,140,26,0.35);
}

/* SMALL HEADER LOGIN BUTTONS */

.header-login-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    font-size:12px;
    font-weight:600;
    border-radius:6px;
    color:#e6edf3;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(6px);
    transition:all .22s ease;
}

.header-login-btn:hover{
    color:#fff;
    background:linear-gradient(45deg, #ff8c1a, #ff6a00);
    border-color:transparent;
    box-shadow:0 6px 14px rgba(255,140,26,0.35);
    transform:translateY(-1px);
}

/* ==============================
   LANGUAGE SWITCHER
================================ */

.language-switcher {
    display: flex;
    gap: 5px;
}

.lang-pill {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
}

.lang-pill.active {
    background: #ff8c1a;
    color: #fff;
    border-color: transparent;
}

/* ==============================
   MOBILE NAV BUTTON
================================ */

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}

.mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: #fff;
}

/* ==============================
   FOOTER
================================ */

.site-footer {
    margin-top: 90px;
    border-top: none;
    padding: 20px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
    align-items: start;
    align-content: start;
}

.footer-column {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.footer-column h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.footer-column a {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    transition: color 0.22s ease, transform 0.22s ease;
}

.footer-column a:hover {
    color: var(--primary);
    transform: none;
}

.footer-column p,
.footer-column li {
    color: rgba(255,255,255,0.70);
    font-size: 13px;
    line-height: 1.65;
}

.footer-column:first-child {
    grid-column: 1 / -1;
    padding: 18px 0 14px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
}

.footer-column:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 78px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8c1a 0%, #ffb347 100%);
    box-shadow: 0 0 14px rgba(255,140,26,0.30);
}

.footer-column:first-child::after {
    content: '';
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 0 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03) url('../images/logo/logo.png') center/30px no-repeat;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 20px rgba(255,140,26,0.18);
}

.footer-column:first-child h4 {
    font-size: 30px;
    line-height: 1.02;
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 34%, #ffb347 58%, #ff8c1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-column:first-child p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.65;
}

.footer-column:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
}

.footer-column:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.footer-column:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
}

.footer-column:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
}

.footer-bottom {
    margin-top: 18px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: left;
    font-size: 12px;
    color: rgba(255,255,255,0.58);
}

/* ==============================
   MOBILE NAV (hidden default)
================================ */

.mobile-nav {
    display: none;
}

/* ==============================
   CARDS
================================ */

.feature-card,
.project-card,
.reference-card,
.contact-preview-card {
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 26px rgba(255,140,26,0.28);
    padding: 20px;
    transition: all 0.3s ease;
}

@media (min-width: 1025px) {
    .site-header .container,
    .site-footer .container {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
    }

    .site-footer {
        padding: 22px 0 0;
    }

    .site-footer .container {
        padding: 22px 22px 10px;
        border-radius: 18px 18px 0 0;
        background:
            linear-gradient(90deg, rgba(255,140,26,0.00) 0%, rgba(255,140,26,0.72) 16%, rgba(255,191,73,0.88) 50%, rgba(255,140,26,0.72) 84%, rgba(255,140,26,0.00) 100%),
            radial-gradient(circle at top left, rgba(255,140,26,0.18) 0%, rgba(255,140,26,0.05) 18%, transparent 42%),
            radial-gradient(circle at bottom right, rgba(39,87,255,0.08) 0%, rgba(39,87,255,0.025) 16%, transparent 38%),
            linear-gradient(180deg, rgba(7,11,18,0.988) 0%, rgba(11,16,26,0.996) 100%);
        background-size: 100% 2px, auto, auto, auto;
        background-repeat: no-repeat;
        background-position: top left, top left, bottom right, center;
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.04),
            0 16px 28px rgba(0,0,0,0.32),
            0 0 20px rgba(255,140,26,0.07);
        overflow: hidden;
    }
}


/* ==============================
   CONTACT HERO OVERRIDE
================================ */
.page-contact .hero-contact{
    padding: 126px 0 34px;
}

.page-contact .hero-contact .container{
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
}

.page-contact .hero-contact .hero-content{
    max-width: 560px;
    padding: 0;
}

.page-contact .hero-contact h1{
    font-size: 60px;
    line-height: 0.94;
    letter-spacing: -1.2px;
    margin-bottom: 14px;
    font-weight: 800;
}

.page-contact .hero-contact p{
    max-width: 470px;
    font-size: 16px;
    line-height: 1.52;
    color: rgba(255,255,255,0.90);
    margin-bottom: 22px;
}

.page-contact .hero-contact .hero-buttons{
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.page-contact .hero-contact .btn-primary{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, #ffb347 0%, #ff8c32 100%);
    box-shadow: 0 10px 22px rgba(255,140,50,0.28), 0 0 24px rgba(255,140,50,0.16);
    transition: all .28s ease;
}

.page-contact .hero-contact .btn-primary:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255,140,50,0.34), 0 0 28px rgba(255,140,50,0.18);
}

@media (max-width: 700px){
    .page-contact .hero-contact{
        padding: 110px 0 18px;
    }

    .page-contact .hero-contact .container{
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
    }

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

    .page-contact .hero-contact h1{
        font-size: 34px;
        line-height: 0.98;
        letter-spacing: -0.8px;
        margin-bottom: 10px;
    }

    .page-contact .hero-contact p{
        max-width: 100%;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .page-contact .hero-contact .hero-buttons{
        gap: 10px;
    }

    .page-contact .hero-contact .btn-primary{
        min-height: 44px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* ==============================
   SCROLL OFFSET FOR CONTACT FORM
================================ */

#contact-form{
    scroll-margin-top:120px;
}

@media (max-width:700px){

#contact-form{
    scroll-margin-top:95px;
}

}