/* RESET & GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #050505;
    color: #eaeaea;
    font-size: 18px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e05e00;
}

/* HEADER – Improved sticky with smooth transition */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: rgba(5, 5, 5, 0.88);
    border-bottom: 1px solid rgba(255, 106, 0, 0.25);
    padding: 0 32px;
    transition: all 0.2s ease;
}

.nav-wrap {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.2s ease;
}
.logo-img:hover {
    transform: scale(1.02);
}

/* Desktop navigation */
nav {
    display: flex;
    align-items: center;
    gap: 48px;
}

nav a {
    color: #c0c0c0;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6a00;
    transition: width 0.25s ease;
}

nav a:hover::after,
nav a:focus::after {
    width: 100%;
}

nav a:hover {
    color: #ff6a00;
}

/* HERO – Enhanced with subtle animation and better contrast */
.hero {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at 30% 40%, #ff6a001a 0%, #000000 75%);
    position: relative;
    overflow: hidden;
    padding: 60px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,106,0,0.08) 0%, transparent 60%);
    animation: slowPulse 12s infinite alternate;
    pointer-events: none;
}

@keyframes slowPulse {
    0% { opacity: 0.3; transform: scale(1);}
    100% { opacity: 0.8; transform: scale(1.05);}
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 550px;
    width: 85%;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

.hero h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #ffaa66 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    max-width: 900px;
    margin-top: 8px;
    letter-spacing: -0.3px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 650px;
}

/* SECTIONS */
.section {
    padding: 80px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    background: linear-gradient(120deg, #ff6a00, #ffaa44);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.section h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 3px;
    background: #ff6a00;
    border-radius: 4px;
}

/* APPS GRID – improved responsive, gap, card style */
.apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 48px;
    margin-top: 20px;
}

/* CARD – modern glassmorphism touch */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #0c0c0c;
    border-radius: 28px;
    border: 1px solid #1f1f1f;
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    overflow: hidden;
    text-decoration: none;
    color: #eaeaea;
    backdrop-filter: blur(2px);
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.5);
}

.card:hover {
    border-color: #ff6a00;
    transform: translateY(-8px);
    box-shadow: 0 24px 32px -16px rgba(255, 106, 0, 0.25);
    background: #0f0f0f;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: linear-gradient(145deg, #111111, #080808);
    padding: 28px 24px;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.02);
}

.card-content {
    padding: 20px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ff6a00;
    letter-spacing: -0.3px;
}

.badge {
    display: inline-block;
    background: rgba(255,106,0,0.2);
    color: #ffaa66;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 40px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    width: fit-content;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.55;
    color: #d0d0d0;
    margin: 0;
}

/* Contact section – clean modern */
.contact-card {
    background: #0a0a0a;
    border-radius: 32px;
    border: 1px solid #222;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    max-width: 700px;
    margin: 40px auto 0;
}

.contact-icon {
    font-size: 48px;
    color: #ff6a00;
    background: #1a1a1a;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
}

.email-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffaa66;
    text-decoration: none;
    border-bottom: 2px dotted #ff6a00;
    transition: 0.2s;
    word-break: break-all;
}

.email-link:hover {
    color: #ffffff;
    border-bottom-style: solid;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 48px 24px 32px;
    border-top: 1px solid #151515;
    background: #030303;
    margin-top: 40px;
}

.footer-logo {
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-bottom: 20px;
}

.footer-logo:hover {
    opacity: 1;
}

footer p {
    color: #6a6a6a;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* BACK TO TOP BUTTON (interactive) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6a00;
    width: 48px;
    height: 48px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e05e00;
    transform: translateY(-3px);
}

/* MOBILE & RESPONSIVE */
@media (max-width: 850px) {
    .nav-wrap {
        justify-content: center;
        gap: 20px;
        padding: 12px 0;
    }
    nav {
        gap: 32px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        font-size: 1rem;
    }
    .logo-img {
        height: 55px;
    }
    .section {
        padding: 60px 20px;
    }
    .apps {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .card-content h3 {
        font-size: 1.5rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 550px) {
    header {
        padding: 0 20px;
    }
    nav {
        gap: 24px;
    }
    .hero {
        min-height: 55vh;
        padding: 40px 20px;
    }
    .hero-logo {
        width: 90%;
    }
    .hero h2 {
        font-size: 1.7rem;
    }
    .section h2 {
        font-size: 2.2rem;
    }
    .card-img {
        height: 180px;
        padding: 20px;
    }
    .email-link {
        font-size: 1.2rem;
    }
    .contact-card {
        padding: 28px 20px;
    }
}

/* Accessibility focus */
a:focus-visible, button:focus-visible {
    outline: 3px solid #ff6a00;
    outline-offset: 4px;
    border-radius: 4px;
}