:root {
    --primary-color: #d4a017;
    /* Lanka Gold */
    --secondary-color: #005f73;
    /* Heritage Green/Blue */
    --dark-bg: #0a192f;
    --light-text: #e6f1ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(to right, rgba(10, 25, 47, 0.45) 0%, rgba(10, 25, 47, 0.85) 60%, rgba(10, 25, 47, 0.95) 100%), url('../images/pencilsigiriya.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
}

.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Content Section */
.content-section {
    flex: 1.2;
    padding: 4% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo span {
    color: var(--light-text);
}

.headline {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.subheadline {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(230, 241, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

/* Right Form Section */
.form-section {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3% 5%;
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(10px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 3rem;
    border-radius: 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(230, 241, 255, 0.85);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(212, 160, 23, 0.6);
    filter: brightness(1.1);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    color: rgba(230, 241, 255, 0.6);
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

/* Responsive */
@media (max-width: 1200px) {
    .headline {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
        /* Better performance on mobile */
    }

    .main-container {
        flex-direction: column;
        min-height: auto;
    }

    .content-section {
        padding: 6rem 10% 4rem;
        text-align: center;
        align-items: center;
        min-height: 60vh;
    }

    .headline {
        font-size: 3rem;
        max-width: 800px;
    }

    .subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .form-section {
        padding: 2rem 5% 5rem;
        background: transparent;
        backdrop-filter: none;
    }

    .contact-card {
        max-width: 550px;
        padding: 3.5rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 4rem 6% 3rem;
    }

    .headline {
        font-size: 2.2rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
}