/* Global Variables */
:root {
    /* Base Colors - Matching Main Site */
    --yellow: #f4a300;
    --red: #f44336;
    --blue: #00bcd4;
    --gradient-primary: linear-gradient(135deg, #00bcd4 0%, #f4a300 100%);
    --gradient-accent: linear-gradient(135deg, #f4a300 0%, #f44336 100%);

    /* Semantic Variables (Light Mode Default) */
    --bg-body: #f2f2f2;
    --bg-nav: #f2f2f2;
    --text-main: #111;
    --text-secondary: #333;
    --text-muted: gray;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-color: #ccc;
    --nav-border: #eee;
    --card-bg: #fff;
    --light-gray: #ccc;
    --dark-gray: gray;
    --input-bg: #f7fafc;
    --primary-gradient: linear-gradient(135deg, #00bcd4 0%, #f4a300 100%);
}

[data-theme="dark"] {
    /* Dark Mode Overrides */
    --bg-body: #121212;
    --bg-nav: #1e1e1e;
    --text-main: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --border-color: #333;
    --nav-border: #333;
    --card-bg: #1e1e1e;
    --light-gray: #333;
    --dark-gray: #aaa;
    --input-bg: #0f172a;
}

/* Basic Reset */
* {
    box-sizing: border-box;
    font-family: 'Inter', "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Body & HTML Structure */
body,
html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 40px;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    z-index: 1001;
    color: var(--text-main);
}

.logo-dot {
    background-color: var(--yellow);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo span.role {
    font-weight: normal;
    font-size: 14px;
    margin-left: 8px;
    color: var(--text-muted);
}

/* Navigation Styles */
nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 25px;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    color: var(--text-main);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    cursor: pointer;
    font-size: 20px;
    margin-left: 20px;
    color: var(--text-main);
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--yellow);
}

/* Main Content Area */
main {
    flex: 1;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 400px;
    max-width: 500px;
}

.contact-info h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info p strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Enhanced Contact Form */
.contact-form {
    flex: 1 1 787px;
    max-width: 600px;
    background: var(--card-bg);
    padding: 45px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.form-header-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.form-header h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 25px;
}

/* Input Groups */
.input-group {
    position: relative;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 1;
}

.input-group.full-width .textarea-icon {
    top: 20px;
    transform: translateY(0);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.15);
}

.contact-form input:focus~.input-icon,
.contact-form textarea:focus~.input-icon {
    color: var(--blue);
    transform: translateY(-50%) scale(1.1);
}

.contact-form textarea:focus~.textarea-icon {
    transform: translateY(0) scale(1.1);
}

.contact-form textarea {
    height: 130px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

/* Input Border Animation */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.contact-form input:focus~.input-border,
.contact-form textarea:focus~.input-border {
    width: 100%;
}

/* Enhanced Submit Button */
.submit-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Status Message */
#status-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 500;
    display: none;
    text-align: center;
    width: 100%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Footer Styles */
footer {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    background-color: var(--bg-body);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
    text-align: left;
}

.footer-section {
    min-width: 150px;
    flex: 1 1 200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.footer-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-section strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons a {
    color: var(--text-main);
    font-size: 22px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--yellow);
    transform: translateY(-3px);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader {
    font-size: 48px;
    animation: bounce 1.2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    transition: all 0.3s ease;
    line-height: 1;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }

    header {
        margin-bottom: 40px;
        flex-wrap: wrap;
    }

    .logo {
        flex-grow: 1;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-nav);
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 20px 0;
        border-top: 1px solid var(--nav-border);
        z-index: 1000;
        border-radius: 0 0 16px 16px;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 15px 0;
        text-align: center;
    }

    main {
        flex-direction: column;
        padding: 20px;
        gap: 40px;
    }

    .contact-info,
    .contact-form {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    .contact-info h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .contact-info p {
        text-align: center;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .input-group {
        grid-column: 1 / -1;
    }

    footer .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
        margin-bottom: 15px;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 10px 14px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .contact-info h1 {
        font-size: 2rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .submit-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}