:root {
    --primary-light: #e0f2fe;
    --primary-mid: #bae6fd;
    --primary-dark: #7dd3fc;
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --text-main: #0f172a;
    --text-muted: #334155;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(2, 132, 199, 0.08);
    --cube-border: rgba(255, 255, 255, 0.5);
    --cube-bg: rgba(255, 255, 255, 0.3);
}

body.dark-mode {
    --primary-light: #0f172a;
    --primary-mid: #1e293b;
    --primary-dark: #334155;
    --accent: #38bdf8;
    --accent-light: #7dd3fc;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --white: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(56, 189, 248, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --cube-border: rgba(56, 189, 248, 0.15);
    --cube-bg: rgba(15, 23, 42, 0.4);
}

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    background-color: transparent;
    transition: color 0.6s ease;
}

/* Background Gradients for Smooth Theme Transition */
body::before, body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    transition: opacity 0.8s ease-in-out;
}

body::before {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #bae6fd 100%);
    opacity: 1;
}

body.dark-mode::before {
    opacity: 0;
}

body::after {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #172554 100%);
    opacity: 0;
}

body.dark-mode::after {
    opacity: 1;
}

/* Background Animation Shapes */
.background-animation {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.cube {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--cube-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--cube-border);
    border-radius: 24px;
    animation: float 15s infinite linear;
    bottom: -150px;
    transition: background 0.6s ease, border-color 0.6s ease;
}

.cube:nth-child(1) { left: 10%; width: 120px; height: 120px; animation-duration: 25s; animation-delay: 2s; border-radius: 35px; }
.cube:nth-child(2) { left: 25%; width: 60px; height: 60px; animation-duration: 18s; animation-delay: 0s; border-radius: 15px; }
.cube:nth-child(3) { left: 70%; width: 150px; height: 150px; animation-duration: 30s; animation-delay: 5s; border-radius: 40px; }
.cube:nth-child(4) { left: 85%; width: 90px; height: 90px; animation-duration: 22s; animation-delay: 1s; border-radius: 25px; }
.cube:nth-child(5) { left: 45%; width: 50px; height: 50px; animation-duration: 12s; animation-delay: 4s; border-radius: 15px; }
.cube:nth-child(6) { left: 55%; width: 75px; height: 75px; animation-duration: 20s; animation-delay: 8s; border-radius: 20px; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--white);
    color: var(--accent-light);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.theme-toggle i {
    position: absolute;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55), opacity 0.6s ease;
}

.light-icon {
    transform: translateY(100%) scale(0.5) rotate(-45deg);
    opacity: 0;
}

.dark-icon {
    transform: translateY(0) scale(1) rotate(0);
    opacity: 1;
}

body.dark-mode .light-icon {
    transform: translateY(0) scale(1) rotate(0);
    opacity: 1;
    color: #fbbf24;
}

body.dark-mode .dark-icon {
    transform: translateY(-100%) scale(0.5) rotate(45deg);
    opacity: 0;
}

/* Container and Glassmorphism */
.container {
    width: 100%;
    max-width: 850px;
    padding: 20px;
    z-index: 1;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: 0 25px 50px var(--shadow-color), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    transform: translateY(40px);
    opacity: 0;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

/* Header & Logo */
header { margin-bottom: 40px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--accent);
    transform: translateZ(30px);
    transition: color 0.6s ease;
}

.logo i {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 6px var(--shadow-color));
    animation: bounce 3s infinite ease-in-out;
}

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

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    transition: color 0.6s ease;
}

/* Main Content */
.content {
    margin-bottom: 40px;
    transform: translateZ(20px);
}

.badge {
    background: var(--white);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
    transition: all 0.6s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    line-height: 1.1;
    min-height: 1.2em;
    transition: color 0.6s ease;
}

.description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.6s ease;
}

.description strong {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.6s ease;
}

/* Contact Info */
.contact-info {
    background: var(--white);
    border-radius: 20px;
    padding: 25px 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.6s ease;
    border: 1px solid transparent;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-light);
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 500;
    transition: color 0.6s ease;
    word-wrap: break-word;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    max-width: 100%;
    word-break: break-all;
    transition: all 0.3s ease;
}

.icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}

.email-link:hover {
    color: var(--text-main);
}

.email-link:hover .icon-wrapper {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.15) rotate(10deg);
}

/* Footer & Socials */
footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 35px;
    transform: translateZ(10px);
    transition: border-color 0.6s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease, color 0.6s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.social-icon:hover {
    background: #25D366; /* WhatsApp color */
    color: #ffffff;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.6s ease;
}

/* Cursor typing animation */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .glass-card {
        padding: 40px 30px;
    }
    
    .title {
        font-size: 2.8rem;
    }

    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .glass-card {
        padding: 35px 20px;
        border-radius: 20px;
    }
    
    header {
        margin-bottom: 25px;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .logo i {
        font-size: 2.2rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }
    
    .title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .description {
        font-size: 1rem;
        margin-bottom: 30px;
        line-height: 1.5;
        padding: 0 5px;
    }
    
    .contact-info {
        padding: 20px 15px;
        width: 100%;
        border-radius: 16px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .email-link {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 10px;
        word-break: break-all;
    }
    
    .icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    footer {
        padding-top: 25px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
