* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: white;
    --border-color: #e0e0e0;
    --footer-bg: #222;
    --footer-text: #fff;
    --accent-color: #fca61f;
    --shadow: rgba(0, 0, 0, 0.1);
}

.dark-theme {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --nav-bg: rgba(30, 30, 30, 0.95);
    --card-bg: #1e1e1e;
    --border-color: #444;
    --footer-bg: #000;
    --footer-text: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: 10vh;
    backdrop-filter: blur(10px);
    background-color: var(--nav-bg);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-container .logo img {
    width: 140px;
    height: 38px;
}

.nav-container .links a {
    font-size: 1.3rem;
    color: var(--text-color);
    text-decoration: none;
    margin: 0 20px;
    transition: 0.3s linear;
}

.nav-container .links a:hover {
    color: var(--accent-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
    color: var(--accent-color);
}

nav svg {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    display: none;
    fill: var(--text-color);
}

nav .dropmenu {
    position: absolute;
    top: 0;
    backdrop-filter: blur(2px);
    width: 100%;
    height: auto;
    transform: translateY(-300px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 0.3s linear;
    background-color: var(--nav-bg);
}

.dropmenu a {
    font-size: 1.4rem;
    text-align: center;
    width: 100%;
    color: var(--text-color);
    padding: 10px 0;
    text-decoration: none;
    transition: 0.3s linear;
}

.dropmenu a:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Contact Form */
.contact-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 50px 20px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-left-title h2 {
    font-weight: 600;
    color: var(--text-color);
    font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-left hr {
    border: none;
    width: 120px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-inputs {
    width: 400px;
    height: 50px;
    border: 1px solid var(--border-color);
    outline: none;
    padding-left: 25px;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-left textarea {
    height: 140px;
    padding-top: 15px;
    resize: none;
}

.contact-inputs:focus {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 4px rgba(252, 166, 31, 0.1);
}

.contact-inputs::placeholder {
    color: #a9a9a9;
}

.contact-left button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 50px;
    background-color: var(--accent-color);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-left button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 166, 31, 0.3);
}

.contact-right img {
    width: 500px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: box-shadow 0.3s ease;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 0;
    margin-top: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 100px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    text-decoration: none;
    font-size: 24px;
    color: var(--footer-text);
    transition: 0.3s;
}

.footer-social i {
    font-size: 2rem;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.footer-social a.linkedin:hover {
    color: #0077b5;
}

.footer-social a.gmail:hover {
    color: #dd4b39;
}

.footer-social a.github:hover {
    color: #1dbf73;
}

.footer-text {
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        padding: 30px 20px;
    }

    .contact-right img {
        width: 400px;
    }
}

@media (max-width: 800px) {
    .contact-inputs {
        width: 100%;
        min-width: 280px;
    }

    .contact-right {
        display: none;
    }

    .nav-container .links {
        display: none;
    }

    .contact-left {
        width: 100%;
        max-width: 500px;
    }

    nav svg {
        display: block;
    }

    .nav-container .logo {
        position: absolute;
        left: 20px;
    }
    
    .theme-toggle {
        position: absolute;
        right: 70px;
        top: 15px;
    }
}

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

    .contact-left {
        padding: 30px 20px;
    }

    .contact-left-title h2 {
        font-size: 1.8rem;
    }

    .contact-inputs {
        padding-left: 15px;
        font-size: 0.9rem;
    }

    .contact-left button {
        width: 100%;
    }
}