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

:root {
    --primary: #9929EA;
    --primary-light: #b25ef0;
    --primary-dark: #7a1bc2;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #343a40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background-color: var(--white);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/backgrounds/feather.png');
    background-size: 40%;
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 0.03;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
#header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    background: transparent;
    border: none;
    z-index: 1001;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background-color: var(--light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--gray);
}

.breadcrumb-list a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb-list a:hover {
    color: var(--primary-dark);
}

/* Contact Hero Section */
.contact-hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(153, 41, 234, 0.05) 0%, rgba(122, 27, 194, 0.05) 100%);
}

.contact-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.contact-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.contact-hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(153, 41, 234, 0.05) 0%, rgba(122, 27, 194, 0.05) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.illustration-img {
    max-width: 100%;
    height: auto;
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-side .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-info-side .contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-side .contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 5px;
    min-width: 25px;
}

.contact-info-side .contact-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-info-side .contact-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.contact-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-intro {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(153, 41, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

/* Result Message */
.result-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.result-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.result-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* CTA Section */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.cta-btn {
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.cta-btn:hover {
    background-color: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #adb5bd;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.designer-link {
    color: var(--primary-light);
    transition: var(--transition);
}

.designer-link:hover {
    color: var(--primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-left {
        order: 2;
    }
    
    .contact-card {
        order: 1;
    }
    
    .contact-illustration {
        display: none;
    }
    
    .contact-info-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-info-side .contact-item {
        flex: 1;
        min-width: 250px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: auto;
        background-color: var(--white);
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        transition: var(--transition);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-wrap: wrap;
    }
    
    .nav-menu.active {
        right: 0;
        top: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-info-side {
        flex-direction: column;
    }
    
    .contact-info-side .contact-item {
        min-width: auto;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .contact-hero {
        padding: 50px 0 30px;
    }
    
    .contact-hero h1 {
        font-size: 1.6rem;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-card h2 {
        font-size: 1.4rem;
    }
    
    .cta {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .contact-info-side .contact-item {
        flex-direction: row;
        text-align: left;
    }
}