/* CSS Variables for consistent theming */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background: #ffffff;
    --gradient-start: #f8f9fa;
    --gradient-end: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: 
        linear-gradient(to right, transparent 0%, rgba(44, 62, 80, 0.3) 20%, rgba(52, 73, 94, 0.4) 40%, transparent 60%, rgba(46, 64, 83, 0.35) 80%, transparent 100%),
        radial-gradient(ellipse 120% 100% at 50% 100%, rgba(52, 73, 94, 0.6) 0%, rgba(44, 62, 80, 0.4) 40%, transparent 70%),
        radial-gradient(ellipse 150% 80% at 25% 100%, rgba(34, 49, 63, 0.8) 0%, rgba(44, 62, 80, 0.5) 50%, transparent 80%),
        radial-gradient(ellipse 130% 70% at 75% 100%, rgba(41, 55, 71, 0.7) 0%, rgba(52, 73, 94, 0.4) 60%, transparent 85%),
        linear-gradient(180deg, 
            rgba(25, 42, 56, 1) 0%, 
            rgba(34, 49, 63, 0.95) 30%, 
            rgba(44, 62, 80, 0.9) 60%, 
            rgba(52, 73, 94, 0.85) 100%);
    background-size: cover;
    background-position: center bottom;
    background-attachment: scroll;        /* ← CHANGED FROM fixed */
    min-height: 100dvh;                   /* ← Use dvh instead of vh */
    padding-bottom: env(safe-area-inset-bottom);  /* ← Push content above nav bar */
    overflow-x: hidden;
}

/* Container and Layout */
.container {
    position: relative;
    min-height: 100dvh;
    min-height: calc(100dvh - env(safe-area-inset-top)); /* extra safety for notches */
    display: flex;
    align-items: flex-start;         /* ← THIS IS THE KEY CHANGE (was "center") */
    justify-content: center;
    padding: 2rem;
    padding-top: max(3vh, 1.5rem);     /* ← nice gap at the top on desktop/tablet */
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Subtle mist effects only */
        radial-gradient(ellipse 100% 40% at 50% 100%, rgba(255, 255, 255, 0.015) 0%, transparent 80%),
        radial-gradient(ellipse 80% 25% at 30% 95%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
    z-index: -1;
}

.content {
    text-align: center;
    max-width: 700px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    padding: 3rem 2rem;
}

/* Logo Styles */
.logo-container {
    margin-bottom: 4rem;
    animation: logoFloat 6s ease-in-out infinite;
}

.logo-wrapper {
    display: inline-block;
    position: relative;
    transition: var(--transition-smooth);
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
    filter: blur(20px);
}

.logo-wrapper:hover::before {
    opacity: 0.1;
}

.logo {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo:hover {
    transform: scale(1.05) translateY(-8px);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    border-color: rgba(255, 255, 255, 0.2);
}

/* Typography - Company name removed as it's in the logo */

.slogan {
    font-size: clamp(1.8rem, 5vw, 2.6rem);     /* perfect balance: big but not overwhelming */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4.5rem;
    letter-spacing: 0.06em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.slogan::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    margin: 4rem auto 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    animation: dividerPulse 3s ease-in-out infinite;
}

/* About Us Section */
.about-section {
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out 0.6s both;
    position: relative;
}

.about-section::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    margin: 4rem auto 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% {
        width: 80px;
        opacity: 0.8;
    }
    50% {
        width: 300px;
        opacity: 0.6;
    }
}

.about-text {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-style: italic;
    max-width: 550px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tagline {
    margin-top: 3.5rem;
    font-size: clamp(1.3rem, 3.8vw, 1.7rem);  /* smaller than the slogan */
    font-weight: 600;                        /* same weight is fine, or drop to 500 */
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Optional: make each word slightly separated for extra impact */
.tagline span {
    display: inline-block;
}
.tagline span:not(:last-child)::after {
    content: " • ";
    margin: 0 0.8em;
    opacity: 0.6;
}

/* Contact Section */
.contact-section {
    margin-top: 4rem;
    animation: fadeIn 1s ease-out 0.7s both;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    transition: var(--transition-smooth);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: var(--transition-smooth);
}

.contact-email:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.contact-email:hover::before {
    left: 100%;
}

.email-icon {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.contact-email:hover .email-icon {
    transform: scale(1.2) rotate(10deg);
}

.email-text {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    opacity: 0.03;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 12s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@keyframes backgroundShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(20deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
   
    .logo {
        width: 220px;
        height: 220px;
    }
   
    .slogan {
        margin-bottom: 2rem;
    }
   
    .about-section {
        margin-bottom: 2.5rem;
    }
   
    .contact-email {
        padding: 0.875rem 1.5rem;
        flex-direction: row;
        gap: 0.5rem;
        text-align: center;
    }
   
    .floating-element {
        display: none;
    }
}
@media (max-width: 480px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }
    
    .container {
        padding: 0.5rem;
        height: 100vh;
        height: 100dvh;
        display: flex;
        align-items: flex-start;              /* ← make sure it stays flex-start on mobile too */
        justify-content: center;
        padding-top: max(5vh, 2.5rem);         /* ← perfect breathing room on phones */
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }
    
    .content {
        padding: 1rem;
        transform: translateY(-2vh);
    }
    
    .logo {
        width: 180px;
        height: 180px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .slogan {
        margin-bottom: 1.5rem;
    }
    
    .about-section {
        margin-bottom: 2rem;
    }
    
    .contact-email {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-light: #333333;
        --primary-color: #000000;
        --accent-color: #0066cc;
    }
   
    .contact-email {
        border-color: var(--text-dark);
    }
}
