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

:root {
    /* Islamic-inspired Light Color Palette */
    --primary-color: #2d7a6e;
    --secondary-color: #4a9d8f;
    --accent-gold: #d4af37;
    --light-teal: #e8f5f3;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --gradient-start: #e8f5f3;
    --gradient-end: #ffffff;
    --bg-content: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(45, 122, 110, 0.1);
    --border-color: rgba(45, 122, 110, 0.1);
    --pattern-primary: rgba(45, 122, 110, 0.03);
    --pattern-secondary: rgba(212, 175, 55, 0.03);
}

/* Dark Mode Color Palette */
[data-theme="dark"] {
    --primary-color: #4a9d8f;
    --secondary-color: #5fb3a3;
    --accent-gold: #f4d03f;
    --light-teal: #1a2f2a;
    --white: #1a1a1a;
    --text-dark: #e8f5f3;
    --text-light: #b8c9c4;
    --gradient-start: #0f1f1c;
    --gradient-end: #1a2f2a;
    --bg-content: rgba(26, 47, 42, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: rgba(74, 157, 143, 0.2);
    --pattern-primary: rgba(74, 157, 143, 0.05);
    --pattern-secondary: rgba(244, 208, 63, 0.05);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

/* Content */
.content {
    text-align: center;
    background: var(--bg-content);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* Logo */
.logo-container {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 180px;
    height: auto;
    width: 100%;
    filter: drop-shadow(0 4px 12px rgba(45, 122, 110, 0.15));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Title */
.title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s ease-out 0.2s both;
    transition: color 0.3s ease;
}

/* Subtitle */
.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease-out 0.4s both;
    transition: color 0.3s ease;
}

/* Description */
.description {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.description-malay {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.8s both;
    transition: color 0.3s ease;
}

/* Divider */
.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    margin: 40px auto;
    animation: fadeIn 1s ease-out 1s both;
}

/* Contact Info */
.contact-info {
    animation: fadeInUp 1s ease-out 1.2s both;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.email::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.email:hover {
    color: var(--secondary-color);
}

.email:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

/* Decorative Pattern Overlay */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, var(--pattern-primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--pattern-secondary) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    transition: background-image 0.3s ease;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-content);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px var(--shadow-color);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Show/Hide icons based on theme */
.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

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

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

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

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .content {
        padding: 40px 30px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .description {
        font-size: 1.5rem;
    }

    .description-malay {
        font-size: 1rem;
    }

    .logo {
        max-width: 150px;
    }
}

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

    .content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .description {
        font-size: 1.3rem;
    }

    .description-malay {
        font-size: 0.95rem;
    }

    .logo {
        max-width: 120px;
    }

    .email {
        font-size: 1rem;
    }

    .divider {
        width: 80px;
        margin: 30px auto;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .description-malay {
        font-size: 0.9rem;
    }
}
