@import url('https://fonts.googleapis.com/css2?family=Alata&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* --- NEW CSS BLURRY SPOTLIGHT ANIMATION --- */
@keyframes spotlight-move {
    0% {
        /* Start position and base opacity */
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        /* Movement and lighting (dimming/lighting effect) */
        transform: translate(-45%, -55%) scale(1.05);
        opacity: 0.7;
    }
    100% {
        /* Return to start position/opacity */
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

#animated-lighting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw; /* Make it large to cover viewport and allow seamless movement */
    height: 200vh;
    z-index: -1; /* Place behind all content */
    pointer-events: none;
    
    /* Dual radial gradients for a two-tone spotlight effect */
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 150, 255, 0.1), transparent 50%), 
        radial-gradient(circle at 70% 80%, rgba(100, 0, 255, 0.1), transparent 50%);
    
    background-size: 100% 100%; 
    
    animation: spotlight-move 45s ease-in-out infinite alternate;
    filter: blur(80px); /* Significant blur for the "blurry spotlight" effect */
}

/* Main Background Color: #010414 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #010414; /* Base dark color */
    cursor: none;
    scroll-behavior: smooth; 
}

/* --- Content Sections General Styling --- */
.content-section {
    min-height: 100vh;
    padding: 100px 5vw;
    color: white;
    font-family: 'Alata', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden; 
}

.section-subheading {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #0096ff;
    margin-bottom: 10px;
    opacity: 0.8;
}

.section-subheading span {
    margin-right: 5px;
}

.section-heading {
    font-size: 3rem;
    margin-bottom: 50px;
    letter-spacing: 0.1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

/* --- Navbar Styles (Glassmorphism) --- */
#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); 
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out; 
    font-family: 'Alata', sans-serif;
}

#navbar.visible {
    transform: translateX(-50%) translateY(0); 
    opacity: 1;
}

#nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #fafafa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #0096ff; 
}

/* --- Landing Page Footer Fade --- */
#landing-footer {
    padding-bottom: 5vh;
    font-size: 0.8rem;
    line-height: 2;
    letter-spacing: 0.5em;
    opacity: 0.6;
    transition: opacity 0.3s ease-out; 
}
#landing-footer img {
    height: 1rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    transition: transform 0.2s ease; 
}
#landing-footer img:hover {
    transform: translateY(-3px); 
}


/* --- Main Text Area and Animation Classes --- */
.landing-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-align: center;
}

header {
    padding-top: 5vh;
    font-size: 1rem;
    letter-spacing: 0.5em;
    opacity: 0.8;
}

.main-text-area {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    position: relative;
}

.main-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: white;
    position:  relative;
    z-index: 2;
    transition: all 0.5s ease-out; 
}

/* Class added by JS on scroll to shrink and move the text */
.main-text.is-minimized {
    position: fixed; 
    top: 35px; 
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem; 
    letter-spacing: 0.05em; 
    animation: moveTitleToNav 0.5s forwards;
    pointer-events: none; 
}

/* Keyframes to move the text to the logo position in the fixed navbar */
@keyframes moveTitleToNav {
    to {
        top: 35px; 
        left: 60px; 
        transform: none; 
        font-size: 1.5rem;
        letter-spacing: 0.05em;
        width: auto;
    }
}

.main-text-area::before {
    content: "ZIHAN KHAN"; 
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-size: 20rem;
    font-weight: 900;
    
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.1); 
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    opacity: 0.1;
    z-index: 0;

    animation: moveRightToLeft 30s linear infinite; 
    white-space: nowrap;
    transform: translateX(100%);
}

@keyframes moveRightToLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.circle {
  height: 24px;
  width: 24px;
  border-radius: 24px;
  background-color: black;
  position: fixed; 
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100; 
}

.glowing-element {
    position: fixed;
    top: -75px;
    left: 50%;
    transform: translateX(-50%);

    box-shadow: 0 0 120px 40px rgba(0, 150, 255, 0.8),
                0 0 220px 60px rgba(0, 150, 255, 0.7);

}

/* --- Features Section (Minimalistic) --- */
.features-section {
    background-color: #050a1d; 
    padding-top: 120px;
    padding-bottom: 120px;
}

.features-section .section-heading {
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.feature-card {
    background-color: #0e1634; 
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.03); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0, 150, 255, 0.1); 
    background-color: #151e44;
}

.feature-card .icon-container {
    background-color: #0096ff; 
    width: 45px; 
    height: 45px;
    border-radius: 8px; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem; 
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem; 
    color: rgba(255, 255, 255, 0.6); 
    line-height: 1.6;
}

/* --- NEW Contact CTA Section Styles (as per Image 1) --- */
.contact-cta-section {
    background-color: #0a0d24; 
    padding: 150px 5vw; 
    min-height: auto; 
}

.contact-card {
    background-color: #1a1e3a; 
    border-radius: 15px;
    padding: 60px 40px;
    max-width: 800px; 
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
}

.contact-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #0096ff;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #007bbd;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 150, 255, 0.3);
}

/* --- NEW Global Footer Styles (as per Image 2) --- */
#global-footer {
    background-color: #0e1634; 
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 5vw 40px; 
    font-family: 'Alata', sans-serif;
    text-align: center; 
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    flex: 2; 
    min-width: 300px; 
    text-align: left;
    margin-bottom: 30px;
}

.footer-brand .brand-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-brand .brand-subtext {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.footer-btn i {
    font-size: 1.1rem;
}

.primary-btn {
    background-color: #0096ff;
    color: white;
}

.primary-btn:hover {
    background-color: #007bbd;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #0096ff;
    color: white;
    transform: translateY(-2px);
}

.footer-links-group {
    flex: 1; 
    min-width: 150px; 
    text-align: left;
    margin-bottom: 30px;
}

.footer-links-group h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group ul li {
    margin-bottom: 10px;
}

.footer-links-group ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-flex; 
    align-items: center;
    gap: 8px;
}

.footer-links-group ul li a:hover {
    color: #0096ff;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* --- Scroll Reveal Animations --- */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Media Queries --- */
@media (min-width: 769px) {
    /* Desktop-specific styles for animation */
    #nav-logo {
        color: transparent; 
        transition: color 0.5s;
    }

    #navbar.show-logo #nav-logo {
        color: white; 
        z-index: 1001; 
    }

    .main-text.is-final-state {
        opacity: 0;
        z-index: 1; 
        transition: opacity 0.2s;
    }

    .footer-links-group {
        text-align: left; 
    }
}


@media (max-width: 768px) {
    /* Mobile styles */
    .main-text {
        font-size: 3rem; 
    }
    .circle {
        display: none;
    }
    #navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        transform: translateX(-50%) translateY(0); 
        opacity: 1;
        transition: none; 
        padding: 10px 20px;
    }
    #nav-logo {
        color: white; 
    }
    .main-text.is-minimized {
        display: none;
    }
    .main-text-area::before {
        display: none;
    }

    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .feature-card {
        padding: 25px;
    }
    .feature-card .icon-container {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .feature-card h3 {
        font-size: 1.1rem;
    }

    /* Contact CTA Section Mobile */
    .contact-card {
        padding: 40px 25px;
    }
    .contact-card h3 {
        font-size: 1.8rem;
    }
    .contact-card p {
        font-size: 1rem;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Global Footer Mobile */
    #global-footer {
        padding: 60px 5vw 30px;
        text-align: center; 
    }
    .footer-content {
        flex-direction: column; 
        align-items: center; 
    }
    .footer-brand, .footer-links-group {
        min-width: unset; 
        width: 100%; 
        text-align: center; 
        margin-bottom: 40px; 
    }
    .footer-links-group h4 {
        margin-bottom: 15px;
    }
    .footer-links-group ul li {
        margin-bottom: 8px;
    }
    .footer-buttons {
        justify-content: center; 
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 2rem; 
    }
    header {
        font-size: 0.6rem; 
    }
    #landing-footer {
        font-size: 0.5rem; 
        letter-spacing: 0.2em;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .nav-links {
        gap: 10px;
    }
    .section-heading {
        font-size: 1.8rem;
    }

    /* Smaller contact card heading */
    .contact-card h3 {
        font-size: 1.5rem;
    }
    .contact-card p {
        font-size: 0.9rem;
    }
    .cta-button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* Smaller footer text */
    .footer-brand .brand-text {
        font-size: 0.95rem;
    }
    .footer-brand .brand-subtext {
        font-size: 0.75rem;
    }
    .footer-btn {
        font-size: 0.85rem;
        padding: 10px 18px;
        gap: 5px;
    }
    .footer-btn i {
        font-size: 1rem;
    }
    .footer-links-group h4 {
        font-size: 1rem;
    }
    .footer-links-group ul li a {
        font-size: 0.85rem;
    }
    .footer-bottom {
        font-size: 0.75rem;
    }
}