@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #0F172A;
    --accent-color: #06B6D4;
    --bg-color: #F8FAFC;
    --text-color: #334155;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Font Variables - UNIQUE & DISTINCTIVE */
    --font-head: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Responsive Container */
    --max-width: 1280px;
    /* Standardize container width */
    --container-padding: clamp(1rem, 5vw, 2rem);
}

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

/* iOS Safari & Form Resets */
input,
button,
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

/* Word Wrapping Utility */
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body {
    background-color: var(--bg-color);
    /* Soft "Cloud" Ambient Background */
    background-image:
        radial-gradient(circle at 0% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
        /* Soft Cyan Top Left */
        radial-gradient(circle at 100% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
        /* Soft Blue Bottom Right */
        radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 30%);
    /* Faint Cyan Top Right */
    background-attachment: fixed;
    /* Keeps the clouds in place while scrolling */

    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   RESPONSIVE CONTAINER
   =================================== */
.page-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.topbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Standardized Padding */
    padding: 80px var(--container-padding) 20px;
    background: transparent;
    z-index: 1000;
    position: relative;
}

/* ===================================
   RESPONSIVE NAVBAR - FIXED
   =================================== */
.navbar {
    display: flex;
    flex-direction: row;
    height: auto;

    /* Center & Fit Content */
    width: fit-content;
    /* Shrink to fit content */
    min-width: 0;
    /* Allow shrinking */
    max-width: 90vw;
    /* Prevent overflow on small screens */

    padding: 12px 40px;
    /* Comfortable pill padding */
    gap: 30px;
    /* Space between logo and links */

    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin-top: 0;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    justify-content: center;
    align-items: center;
}

.lottie {
    width: 45px;
    height: 45px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lottie:hover {
    cursor: pointer;
    transition: transform var(--transition-fast);
    transform: scale(1.1);
}

.ltext {
    display: none;
}

.ltext.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    color: var(--white);
    border-radius: 20px;
    background-color: var(--primary-color);
    padding: 5px 15px;
    font-size: 12px;
}

.navs {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.navs a {
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.navs a h1 {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navs a h1 span {
    display: inline-block;
    /* Ensure text is visible by default */
}

.navs a:hover {
    color: var(--accent-color);
    background-color: rgba(6, 182, 212, 0.1);
    transform: translateY(-2px);
}

.logsin {
    text-decoration: none;
    color: inherit;
}

.sinlog {
    margin-left: 5px;
    flex-shrink: 0;
}

.sinlog button {
    border: none;
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 50px;
    margin-top: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.sinlog button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    color: var(--white);
}

.logsin h1 {
    font-size: 16px;
    margin: 0;
}

/* Tablet - switch to icon-only to prevent overflow */
/* Tablet - Keep text visible but smaller, minimize icons */
@media screen and (max-width: 1200px) {
    .navbar {
        padding: 6px 12px;
        gap: 6px;
    }

    .navs {
        gap: 2px;
    }

    .navs a {
        font-size: 12px;
        /* Increased from 10px for better visibility */
        padding: 4px 6px;
    }

    .navs a h1 {
        font-size: 12px;
        gap: 4px;
        display: flex;
        align-items: center;
    }

    .navs a h1 span {
        display: inline-block;
        /* Force text to show */
    }

    .navs a h1 i {
        font-size: 14px;
        /* Slightly smaller icons as requested (was 18px) */
    }

    .lottie {
        width: 40px;
        height: 40px;
    }

    .sinlog button {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* Mobile - hide text only on phones */
/* Mobile - Stack Icon and Text to save width, keep text visible */
@media screen and (max-width: 600px) {

    /* Topbar adjustments for small screens */
    .topbar {
        padding: 70px var(--container-padding) 10px;
        /* Standardized Padding */
    }

    .logo img {
        height: 40px;
        /* Smaller logo preventing overlap */
        margin-top: 5px;
    }

    .sinlog button {
        padding: 6px 10px;
        font-size: 10px;
        margin-top: 10px;
        /* Adjust alignment */
    }

    .navbar {
        padding: 5px 8px;
        gap: 5px;
        width: 98%;
        /* Ensure it fits */
        max-width: 98vw;
    }

    .navs {
        gap: 4px;
        width: 100%;
        justify-content: space-around;
    }

    .navs a {
        padding: 4px;
        text-align: center;
    }

    .navs a h1 {
        flex-direction: column;
        /* Stack icon on top of text */
        gap: 2px;
        align-items: center;
        justify-content: center;
    }

    .navs a h1 span {
        display: block;
        /* Show text */
        font-size: 8px;
        /* Very small text for mobile */
        line-height: 1;
    }

    .navs a h1 i {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .lottie {
        width: 35px;
        height: 35px;
    }

    .sinlog button {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* Mobile - even more compact */
@media screen and (max-width: 480px) {
    .navbar {
        /* Strictly align Navbar width with the Content gutters */
        width: calc(100% - 2 * var(--container-padding));
        padding: 6px 10px;
        gap: 5px;
    }

    .lottie {
        width: 40px;
        height: 40px;
    }

    .title h1 {
        font-size: clamp(1.75rem, 8vw, 3rem);
    }
}

/* ===================================
   HERO SECTION - RESPONSIVE
   =================================== */
.homecontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Reduced top padding to move title up */
    padding-top: clamp(60px, 10vh, 100px);
    /* Restore safe padding for mobile */
    position: relative;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* DESKTOP ONLY: Raise text higher */
@media screen and (min-width: 1024px) {
    .homecontent {
        padding-top: 0;
        margin-top: -40px;
        /* Pull up closer to Navbar */
    }

    /* Hide Mobile-Only Quick Access logic */
    .quick-access {
        display: none !important;
    }
}

.title {
    text-align: center;
    width: 100%;
    max-width: min(1000px, 90vw);
    margin: 0 auto clamp(30px, 5vh, 50px);
    padding: 0 var(--container-padding);
    z-index: 1000;
    position: relative;
}

.title h1 {
    font-family: var(--font-head);
    font-weight: 700;
    /* FLUID TYPOGRAPHY - scales smoothly from 32px to 72px */
    font-size: clamp(1.5rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: clamp(10px, 2vh, 20px);
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.title h1::after {
    content: '';
    display: block;
    width: 60%;
    height: clamp(4px, 0.5vw, 8px);
    background-color: #FACC15;
    margin: clamp(5px, 1vh, 10px) auto 0;
    border-radius: 4px;
    transform: rotate(0deg);
    /* Straighten the line */
}

.pic {
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    align-items: center;
    padding: 0 var(--container-padding);
}

@keyframes float {
    0% {
        transform: translate(-50%, 0px);
    }

    50% {
        transform: translate(-50%, -20px);
    }

    100% {
        transform: translate(-50%, 0px);
    }
}

.topim {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 30px 30px 0 0;
    /* Match the width of the bottom image/content exactly */
    width: calc(100% - 2 * var(--container-padding));
    max-width: 900px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.botim {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    height: auto;
    margin-top: clamp(200px, 30vh, 350px);
    opacity: 0.9;
}

.logo img {
    height: clamp(50px, 8vw, 80px);
    margin-top: 0;
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.logo img:hover {
    animation: logoPulse 0.6s ease-in-out;
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===================================
   RESPONSIVE BREAKPOINTS (CONSOLIDATED)
   =================================== */

/* ===================================
   QUOTE SECTION - DESKTOP
   =================================== */
/* Tech Dolphin Quote Card - LIGHT VERSION */
.quote {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
    padding: 60px;
    gap: 50px;

    /* Very Light / White Glass Theme */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Subtle White Border */
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 40px;

    /* Clean Soft Shadow */
    box-shadow:
        0 20px 40px -10px rgba(148, 163, 184, 0.1),
        /* Soft Slate Shadow */
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;

    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

/* Gradient Border overlay - REMOVED for clean white look */
.quote::after {
    display: none;
}

.quote:hover {
    transform: translateY(-5px);
    box-shadow:
        0 30px 60px -12px rgba(148, 163, 184, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Very Subtle Shimmer */
.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-20deg);
    transition: 0.7s;
    pointer-events: none;
    z-index: 2;
}

.quote:hover::before {
    left: 200%;
}

.quotepic {
    flex-shrink: 0;
    position: relative;
}

.quotepic img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;

    /* Clean White Ring */
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Very soft shadow */

    transition: all 0.4s ease;
}

.quote:hover .quotepic img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
    /* Slight blue Hint on hover only */
}

.quotetext {
    flex: 1;
    text-align: left;
    z-index: 1;
}

.quotetext h1 {
    font-family: var(--font-body);
    /* Using Poppins per user preference elsewhere */
    font-style: italic;
    font-size: 22px;
    line-height: 1.7;
    color: #475569;
    /* Slate 600 - Readable Dark Grey */
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;

    /* Thin Light Blue Line */
    border-left: 3px solid #bfdbfe;
    /* Blue 200 - Very Light */
}

.quotetext h2 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Solid Dark Slate Color - No Gradient */
    color: #1e293b;

    display: inline-block;
}

/* Responsive adjustment for tablets/mobile */
@media screen and (max-width: 900px) {
    .quote {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
        gap: 30px;
        width: 85%;
    }

    .quotetext {
        text-align: center;
    }

    .quotetext h1 {
        padding-left: 0;
        border-left: none;
        font-size: 18px;
    }
}