* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at center, #a7d8f5 0%, #6bb6de 40%, #4da3d1 70%, #2f7fb3 100%);
    color: #0f172a;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: #ffd500;
    cursor: pointer;
}

/* HEADER */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
}

.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    height: 100px; /* increase this */
    padding: 10px 40px;
}

.logo-img {
    height: clamp(60px, 6vw, 90px);
    width: auto;
    display: block;
    max-height: none;
}

/* NAV */
nav a {
    position: relative;
    color: #cbd5f5;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ffd500;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffea00;
    text-shadow: 0 0 8px rgba(255, 234, 0, 0.8);
}

nav a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* 🔥 THIS IS THE FIX */
    padding: 120px 8%;
    min-height: 100vh;
    gap: 40px;
}

.hero-left {
    flex: 1;
    max-width: 520px;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 🔥 match top alignment */
}  

.slogan {
    color: #1e293b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    opacity: 0.9;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 8px;
}

.hero span {
    color: #ffd500;
}

.desc {
    color: #334155;
    margin-bottom: 16px;
    max-width: 460px;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    color: #e2f3ff;
    font-size: 0.9rem;
}

.hero-features li {
    margin-bottom: 4px;
}

.hero-note {
    font-size: 0.8rem;
    color: rgba(226, 239, 255, 0.85);
}

/* BUTTONS */
.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 6px;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* ✅ YELLOW PRIMARY BUTTON */
.primary {
    background: linear-gradient(135deg, #ffd500, #ffcc00);
    color: #000;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 213, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 213, 0, 0.6);
}

.primary:active {
    transform: scale(0.95);
}

.primary::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.primary:active::after {
    width: 200px;
    height: 200px;
}

.secondary {
    border: 1px solid #94a3b8;
    color: #fff;
}

.secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Glow updated to yellow */
.glow {
    box-shadow: 0 0 15px #ffd500;
}

/* PHONE */
.phone {
    width: 260px;
    height: 520px;
    border-radius: 40px;
    background: #000;
    padding: 10px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 0 3px #222;
    position: relative;

    transform-style: preserve-3d;
    transition: transform 0.3s ease;

    overflow: hidden;
}

.phone:hover {
    transform: rotateY(12deg) rotateX(8deg) scale(1.05);
}

/* Screen */
.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.phone::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s;
}

.phone:hover::after {
    left: 150%;
}

/* Camera notch */
.phone::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background: #111;
    border-radius: 10px;
}

.phone-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5px; /* optional small tweak */
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* FEATURES */
.features {
    padding: 80px 10%;
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
    font-size: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
}

.card {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
}

.card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    height: 220px;
    object-fit: cover;
}

/* hover effect */
.card:hover img {
    transform: scale(1.05);
    
}

.phone-frame {
    width: 180px;
    height: 360px;
    margin: 0 auto 15px;
    border-radius: 32px;
    background: #111;
    padding: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #000;
    border-radius: 10px;
    z-index: 2;
}

/* screen inside phone */
.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 👈 keeps full image clean */
    background: #000; /* fills empty space nicely */
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 🔥 keeps full image */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.card:hover .phone-screen img {
    transform: scale(1.03); /* smaller = safer */
}

.card:hover .phone-frame {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    transform: translateY(-5px);
}

.card:hover .phone-frame img {
    transform: scale(1.05); /* smaller zoom */
}

/* ABOUT */
.about {
    padding: 80px 10%;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 15px auto;
    line-height: 1.7;
    color: #1e293b;
}

/* TEAM inside ABOUT */
.team-wrapper {
    margin-top: 60px;
}

.team-title {
    text-align: center;
    margin-bottom: 30px;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* IMAGE FIX */
.team-card {
    width: 240px;
    padding: 20px;
    border-radius: 18px;

    /* GLASS EFFECT */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    /* SOFT SHADOW */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);

    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: 0.3s ease;
}

.team-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px; /* smoother corners */
    
    /* soften edges visually */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);

    transition: 0.3s ease;
}

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

/* TEXT CLEANUP */
.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #0f172a;
}

.team-card .role {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 5px;
}

.team-card .email {
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all; /* fixes long email overflow */
}
.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* ✅ DOWNLOAD FIX */
.download {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download h2 {
    margin-bottom: 10px;
}

.download p {
    margin-bottom: 25px; /* 🔥 FIX overlap */
    color: #334155;
}

.download .btn {
    display: inline-block; /* prevents full width */
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;

    background: linear-gradient(135deg, #ffd500, #ffcc00);
    color: #000;

    box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
    transition: 0.3s;

    text-align: center;
}

.download .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 213, 0, 0.7);
}

.download .btn:active {
    transform: scale(0.95);
}

.specs {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.spec-box {
    display: flex;
    gap: 40px;
    padding: 30px 40px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    max-width: 800px;
    width: 100%;
}

.spec-column {
    flex: 1;
    text-align: left;
}

.spec-column h3 {
    margin-bottom: 10px;
}

.spec-column ul {
    list-style: none;
    padding: 0;
}

.spec-column li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #1e293b;
}

.spec-column li::before {
    content: "• ";
    color: #facc15; /* matches your yellow button */
    font-weight: bold;
}

/* SCROLL TOP */
#topBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    padding: 12px 16px;
    border: none;
    border-radius: 50%;
    background: #ffd500;
    color: #000;
    cursor: pointer;
}

#features {
    scroll-margin-top: 110px;
}

#about {
    scroll-margin-top: 110px;
}

#download {
    scroll-margin-top: 110px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        flex-direction: column; /* stack */
        text-align: center;
        align-items: center;
    }

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

    .hero-right {
        margin-top: 30px;
    }

    .buttons {
        justify-content: center;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .phone {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 500px) {
    .phone {
        width: 180px;
        height: 360px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
@media (max-width: 700px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: rgba(0,0,0,0.8);
        width: 200px;
        display: none;
        flex-direction: column;
        padding: 20px;
        border-radius: 10px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
    }
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 36px;
    }

    .desc {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .spec-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .spec-column {
        text-align: center;
    }
}
