/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primary: #0F3D63;
    --secondary: #D4AF37;
    --light: #FFFFF7;
    --dark: #111827;
    --text: #374151;
    --muted: #6B7280;
    --white: #ffffff;

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

    --radius: 18px;

    --transition: all 0.35s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #fafafa;
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 60px;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--secondary);
    display: block;
    margin: 18px auto 0;
    border-radius: 20px;
}

p {
    color: var(--text);
    font-size: 1.02rem;
}

/* =========================
   NAVBAR
========================= */

.navbartitle {
    position: sticky;
    top: 0; /* Stays at the very top */
    z-index: 1001; /* Higher than navbar to stay on top if they overlap */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 7%;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar {
    position: sticky;
    /* CHANGE THIS: Set to the height of .navbartitle */
    /* If the title bar is 60px high, top should be 60px */
    top: 100px; 
    
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 7%;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.nav-links {
    display: contents;
    list-style: none;
    gap: 36px;
    transition:font-size 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;

    width: 0%;
    height: 2px;

    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 30px;

    border-radius: 999px;

    text-decoration: none;
    font-weight: 600;

    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.8);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 92vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 120px 20px;

    position: relative;

    background:
        linear-gradient(
            rgba(10,20,35,0.65),
            rgba(10,20,35,0.72)
        ),
        url('./images/Home.jpeg');

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 850px;
    animation: fadeUp 1s ease;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    color: rgba(255,255,255,0.92);
    font-size: 0.8rem;
    max-width:600px;
    margin: 0 auto 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 100px 8%;
}

.about,
.services,
.success-stories,
.why-us {
    position: relative;
}

/* =========================
   ABOUT INTRO
========================= */

.about-intro {
    max-width: 950px;
    margin: auto;
    text-align: center;
}

.about-heading {
    margin-top: 45px;
    margin-bottom: 20px;

    color: var(--primary);
    font-size: 1.5rem;
}



.about-intro p {
    margin-bottom: 20px;
    color: var(--text);
}

/* =========================
   SPLIT SECTION
========================= */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
    gap: 35px;
    margin-top: 60px;
}

.split div {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.split div:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* =========================
   CARDS
========================= */

.about-grid,
.services-grid,
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 35px;
}

.about-card,
.service-card,
.why-us-card {
    background: white;

    padding: 42px 32px;

    border-radius: var(--radius);

    text-align: center;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    border: 1px solid rgba(0,0,0,0.04);
}

.about-card:hover,
.service-card:hover,
.why-us-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.role {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

/* =========================
   SUCCESS STORIES
========================= */

/* Section Styling */
.success-stories-section {
    background-color: #0F3D63; /* Sapphire Blue Background */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFF0; /* Ivory Text */
    font-family: 'Georgia', serif;
}

.content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
}

/* Clock Styling */
.clock-container {
    flex-shrink: 0;
}

.clock {
    width: 120px;
    height: 120px;
    background-color: #FFFFF0; /* Ivory Face */
    border: 6px solid #D4AF37; /* Gold Rim */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Realistic Hour Markers */
.marker {
    position: absolute;
    background: #0F3D63;
    width: 4px;
    height: 8px;
    left: 50%;
    transform: translateX(-50%);
}
.m12 { top: 5px; }
.m6  { bottom: 5px; }
.m3  { right: 5px; top: 50%; width: 8px; height: 4px; transform: translateY(-50%); }
.m9  { left: 5px; top: 50%; width: 8px; height: 4px; transform: translateY(-50%); }

.center-dot {
    width: 10px;
    height: 10px;
    background: #D4AF37;
    border: 2px solid #0F3D63;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* Hands Styling */
.hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom;
    border-radius: 10px;
    transform: translateX(-50%);
}

.hour {
    width: 6px;
    height: 30px;
    background: #0F3D63; /* Sapphire Hour Hand */
    animation: rotate 43200s linear infinite;
}

.minute {
    width: 4px;
    height: 45px;
    background: #0F3D63; /* Sapphire Minute Hand */
    opacity: 0.8;
    animation: rotate 3600s linear infinite;
}

.second {
    width: 2px;
    height: 50px;
    background: #D4AF37; /* Gold Second Hand */
    animation: rotate 60s steps(60) infinite; /* Realistic Tick */
}

/* Animation */
@keyframes rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Text Content Styling */
.text-content h2 {
    font-size: 0.5rem;
    margin: 10px 0;
    color: #FFFFF0; /* Gold Heading */
}

.tag {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #FFFFF0;
}

.text-content p {
    max-width: 400px;
    line-height: 1.6;
    font-style: italic;
}

.text-content-set {
    max-width: 400px;
    line-height: 1.6;
    font-style: italic;
    color:#FFFFF0
}
/* =========================
   FORM
========================= */

.footer {
    background: linear-gradient(
        135deg,
        #0F172A,
        #111827
    );

    color: white;
    text-align: center;
}

.footer h2 {
    color: white;
    margin-bottom: 15px;
}

.footer p {
    color: rgba(255,255,255,0.75);
}

.consultation-form {
    max-width: 650px;
    margin: 50px auto 0;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.consultation-form label {
    text-align: left;
    font-weight: 600;
    color: white;
}

.consultation-form input {
    padding: 16px 18px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.08);

    color: white;

    font-size: 1rem;

    outline: none;

    transition: var(--transition);
}

.consultation-form input:focus {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.12);
}

.consultation-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* =========================
   SOCIALS
========================= */

.social-links {
    margin-top: 45px;
}

.social-links a {
    margin: 0 12px;
}

.social-links i {
    font-size: 1.8rem;
    color: white;
    transition: var(--transition);
}

.social-links i:hover {
    color: var(--secondary);
    transform: translateY(-4px);
}

.footer-bottom {
    background-color: #0F3D63; /* A slightly darker Sapphire for contrast */
    color: #FFFFFF;
    padding: 5px 0;
    text-align: center;
    border-top: 2px solid #D4AF37; /* Gold accent line */
    font-size: 0.9rem;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    letter-spacing: 1px;
    color: #FFFFFF;
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* 20px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* Sit on top of everything */
    border: 2px solid #D4AF37; /* Gold border */
    outline: none;
    background-color: #0F3D63; /* Sapphire Blue */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Circular button */
    font-size: 18px;
    transition: background-color 0.3s;
}

#backToTop:hover {
    background-color: #0F3D63; /* Darker blue on hover */
    color: #D4AF37; /* Gold arrow on hover */
}

/* =========================
   HAMBURGER
========================= */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    border-radius: 20px;
    background: var(--dark);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .navbar {
        padding: 16px 5%;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        gap: 24px;

        padding: 30px 0;

        display: none;

        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        min-height: 85vh;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    section {
        padding: 80px 6%;
    }
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .nav-link {
        font-size: 16px;
    }
}

/* Mobile Screens (Width less than 480px) */
@media screen and (max-width: 480px) {
    .nav-link {
        font-size: 14px; /* Smaller text so it fits on one line */
    }
}