/* =========================================
   1. GENERAL SETUP & SCROLLING
   ========================================= */
html, body { 
    margin: 0; 
    padding: 0; 
    height: 100%; 
    scroll-behavior: smooth; 
    overflow-y: scroll; 
    overflow-x: hidden; 
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); 
    min-height: 100vh; 
}

body { 
    font-family: 'Arial', sans-serif; 
    color: white; 
    background: transparent; 
    background-attachment: fixed; 
    background-size: cover; 
    background-repeat: no-repeat; 
    scroll-snap-type: y mandatory; 
    overscroll-behavior-y: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   2. SECTIONS & ANIMATIONS
   ========================================= */
section { 
    scroll-snap-align: start; 
    scroll-snap-stop: always; 
    position: relative; 
    width: 100%; 
    min-height: 100dvh; 
    padding: 10px 20px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    background: transparent; 
    box-sizing: border-box; 
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

section h2 { 
    text-align: center; 
    margin-bottom: 20px; 
    color: #d3b8ff; 
    font-size: clamp(1.8em, 4vw, 2em); 
}

/* Base paragraph style */
section p { 
    max-width: 600px; 
    margin: 0 auto; 
    padding: 0 10px; 
    line-height: 1.8; 
    color: #eaeaea; 
    font-size: clamp(0.8em, 1vw, 1em); 
}

/* =========================================
   3. HEADER STYLES
   ========================================= */
header { 
    height: 100dvh; 
    scroll-snap-align: start; 
    scroll-snap-stop: always; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    overflow: hidden; 
}

#friendlyCanvas { position: absolute; top:0; left:0; width:100%; height:100%; z-index:1; pointer-events:none; }
header .content { position: relative; z-index:2; }

header h1 { font-size: clamp(1.6em,5vw,3em); margin:0; animation: subtleGlow 6s ease-in-out infinite; }
@keyframes subtleGlow { 0%,100%{text-shadow:none;color:white;} 20%{color:#8867a8;} }

.typing { font-size: clamp(0.8em,2vw,1.1em); display:block; overflow:hidden; white-space:nowrap; text-align:center; color:whitesmoke; width:fit-content; margin:10px auto; animation:typing 2.5s steps(40,end) forwards; }
@keyframes typing { from{width:0;} to{width:100%;} }

.logo { width:clamp(100px,15vw,200px); height:auto; margin-bottom:20px; animation:glowLogo 3s ease-in-out infinite; transition: width 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
@keyframes glowLogo { 0%,100%{filter:drop-shadow(0 0 0px #c084fc);}50%{filter:drop-shadow(0 0 15px #c084fc);} }

.discover-btn { font-size:clamp(0.8em,1.5vw,1em); display:inline-block; margin-top:30px; padding:12px 30px; background:transparent; color:#d3b8ff; border:0.5px solid whitesmoke; border-radius:30px; cursor:pointer; transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.discover-btn:hover { background:rgba(192,132,252,0.3); box-shadow:0 0 20px #c084fc,0 0 30px #a855f7; transform:scale(1.1); }

/* =========================================
   4. CONTENT CARDS (Services, About, Vision, Mission)
   ========================================= */
.objectives-grid {
    width: 100%;
    max-width: 900px; 
    margin: 5px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.objective-card {
    background: rgba(192, 132, 252, 0.1); 
    backdrop-filter: blur(3px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(192, 132, 252, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.objective-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4); }
.objective-card h3 { color: #d3b8ff; margin: 10px 0; font-size: clamp(1.1em, 1vw, 1.4em); }
.objective-card p { color: #eaeaea; font-size: clamp(0.75em, 1vw, 1em); text-align: center; padding: 0; margin: 0; line-height: 1.5; }
.card-icon { font-size: 2rem; line-height: 1; margin-bottom: 5px; color: #c084fc; }

/* Unified Content Card */
.content-card {
    width: 100%;
    max-width: 800px;
    background: rgba(192, 132, 252, 0.1); 
    backdrop-filter: blur(3px);
    border-radius: 15px;
    border: 1px solid rgba(192, 132, 252, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* --- GLOBAL TEXT FORMATTING --- */
.about-card p, .principle-card p {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: none;
    -webkit-hyphens: none;
    word-spacing: -0.5px;
    letter-spacing: -0.4px; 
    font-size: clamp(0.8rem, 2vw, 1.2rem); 
    max-width: 700px; 
    line-height: 1.6;
}

/* Specific Desktop Padding */
.about-card { padding: 60px; }
.principle-card p { padding:40px } 

.about-card .about-image {
    width: 80%; max-width: 800px; height: auto; border-radius: 10px; margin: 20px; 
    display: block; border: 1px solid rgba(192, 132, 252, 0.5); box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

/* =========================================
   5. CONTACT SECTION & MERGED FOOTER
   ========================================= */
.contact {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
    min-height: 100vh !important; 
    
    /* Dark Background */
    background: rgba(15, 12, 41, 0.85);
    
    /* DESKTOP SPACING: Moves content UP by adding bottom padding */
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 150px; 
    
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    max-width: 400px; 
    width: 100%; 
    margin-top: 10px; 
    margin-bottom: 60px; /* Space between form and footer icons */
}

.contact-form input, .contact-form textarea { 
    padding: 10px; 
    border: none; 
    border-radius: 5px; 
    font-size: 1em; 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
    border: 1px solid rgba(192, 132, 252, 0.3); 
    transition: box-shadow 0.3s ease;
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none;
    resize: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none; 
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6); 
    background: rgba(255, 255, 255, 0.1); 
}

/* AUTOFILL FIX */
.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 50000s ease-in-out 0s;
    caret-color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1; 
}

.contact-form textarea { resize: vertical; min-height: 60px; height: 60px; max-height: 400px; }
.contact-form input.invalid, .contact-form textarea.invalid { border: 2px solid #ff6b6b; box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }

.contact-form button { padding:14px; border:none; border-radius:30px; font-size:1.1em; background:linear-gradient(90deg,#a855f7,#3b82f6); color:white; cursor:pointer; box-shadow:0 0 10px rgba(168,85,247,0.4); transition:all 0.3s ease; }
.contact-form button:hover { background:linear-gradient(90deg,#9333ea,#2563eb); transform:scale(1.05); box-shadow:0 0 25px rgba(168,85,247,0.8); }
.grecaptcha-badge { visibility: hidden !important; }

/* --- NESTED FOOTER STYLES --- */
.internal-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 0; 
}

.social-icons { display:flex; justify-content:center; gap:15px; padding-bottom: 15px; }
.social-icons a { color:white; font-size:2rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color:#d3b8ff; transform:scale(1.2); }

.copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   6. EXTRAS & VIDEO
   ========================================= */
.brands .brand-logos { display:flex; flex-wrap:wrap; justify-content:center; gap:40px; }
.brands .brand-logos img { max-width:150px; height:auto; filter:brightness(0.9); transition:transform 0.3s ease, filter 0.3s ease; }
.brands .brand-logos img:hover { transform:scale(1.1); filter:brightness(1); }

/* Video Container */
.video-container {
    position: relative;
    width: 90%;            
    max-width: 800px;       
    aspect-ratio: 16 / 9;   
    border-radius: 10px;    
    overflow: hidden;       
    box-shadow: 0 10px 10px rgba(0,0,0,0.10); 
    margin: 0 auto;         
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; 
}

.section-arrow { 
    position: relative; 
    margin-top: 80px; 
    font-size: 2rem; 
    color: #c084fc; 
    text-shadow: 0 0 10px #c084fc,0 0 20px #a855f7; 
    animation: bounce 2s infinite; 
    cursor: pointer; 
    opacity: 0.5; 
}
@keyframes bounce {0%,20%,50%,80%,100%{transform:translateY(0);}40%{transform:translateY(8px);}60%{transform:translateY(4px);} }

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 600px) {
    .logo { width: 120px; margin-top: 20px; }
    .discover-btn { padding: 15px 35px; font-size: 1.1em; }
    
    /* 1. About Me padding (Wide 30px) */
    .about-card, .content-card { 
        padding: 40px 30px; 
    }
    
    /* 2. Vision & Mission padding (Narrow 15px) */
    .principle-card {
        padding: 20px 10px; 
    }

    .about-card .about-image { max-width: 90%; }
    .contact-form { max-width: 90%; }
    
    /* MOBILE RESET: Override the desktop padding & alignment */
    .contact { 
        min-height: 100vh !important; 
        
        /* ALIGNMENT FIX: Moves content to the TOP */
        justify-content: flex-start; 
        
        /* Add top padding so it doesn't touch the screen edge */
        padding-top: 80px; 
        padding-bottom: 50px; 
    }
    
    /* UPDATED: Mobile Video Logic */
    .video-container {
        /* Makes the video wider than the text: 100% of screen width + 20px buffer */
        width: calc(100% + 20px); 
        
        /* Pulls it slightly to the left to center it properly */
        margin-left: -10px; 
        
        border-radius: 10px; 
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .logo { animation: none; }
    .typing { animation: none; }
    .discover-btn:hover { transform: none; }
    .objective-card:hover { transform: none; }
    .section-arrow { animation: none; }
    .brands .brand-logos img:hover { transform: none; }
    #friendlyCanvas { display: none; }
}




