/* ==============================
   CONTACT SECTION — Modern & Adaptive
   ============================== */

    /*----------------------{Include Bootstrap CSS}----------------------------*/
    @import url("/css/bootstrap-5.3.2/bootstrap.min.css");

    /*----------------------{Include font-awesome}-----------------------------*/
    @import url("/css/fontawesome-6.6.0/css/fontawesome.css");
    @import url("/css/fontawesome-6.6.0/css/brands.css");
    @import url("/css/fontawesome-6.6.0/css/solid.css");

   /*----------------------{Include Component Styles}----------------------------*/
   @import url('/partials/header/css/navbar.css');
   @import url('/partials/footer/css/footer.css');
   @import url('/commerce/cart/css/prices.css');

/* ================================
   GLOBAL CSS VARIABLES
================================ */

/* Modern CSS Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove default margins & improve text rendering */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
}

/* ================================
   VARIABLES - Light Mode
================================ */
:root {
    /* Brand Colors */
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Backgrounds */
    --contact-bg: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --form-bg: #ffffff;
    --card-bg: #ffffff;
    --input-bg: #f8fafc;
    --icon-bg: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    
    /* Text Colors */
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-input: #cbd5e1;
    --border-focus: var(--primary-color);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.15);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    
    /* Special Effects */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-button: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --backdrop-blur: blur(10px);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ================================
   CONTACT SECTION
================================ */
.contact {
    padding: clamp(4rem, 10vw, 8rem) 0;
    background: var(--contact-bg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

/* Decorative Background Elements */
.contact::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-15px, 15px) rotate(-5deg); }
    75% { transform: translate(15px, 10px) rotate(3deg); }
}

/* Header Section */
.about__header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

.section__label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--icon-bg);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.contact__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: var(--transition-base);
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    transition: var(--transition-base);
}

/* Grid Wrapper */
.contact__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Contact Info Section */
.contact__info {
    position: relative;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.75rem);
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact__detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-button);
    transform: scaleY(0);
    transition: var(--transition-smooth);
    transform-origin: bottom;
}

@media (hover: hover) {
    .contact__detail:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-color);
    }
    
    .contact__detail:hover::before {
        transform: scaleY(1);
    }
    
    .contact__detail:hover .detail__icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: var(--shadow-glow);
    }
}

.contact__details .cursor__default {
    cursor: default;
}

.detail__icon {
    width: clamp(55px, 10vw, 60px);
    height: clamp(55px, 10vw, 60px);
    min-width: 55px; /* Ensure minimum size on mobile */
    min-height: 55px;
    background: var(--icon-bg);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible; /* Allow SVG to be fully visible */
    padding: clamp(14px, 3vw, 18px); /* Increased padding for more breathing room */
}

.detail__icon svg {
    width: 100%;
    height: 100%;
    max-width: 26px; /* Slightly smaller to fit inside container */
    max-height: 26px;
    transition: var(--transition-base);
    flex-shrink: 0; /* Prevent SVG from shrinking */
    display: block; /* Remove any inline spacing */
    overflow: visible; /* Prevent stroke clipping */
}

/* Mobile-specific fixes */
@media (max-width: 500px) {
    .detail__icon {
        width: 60px; /* Increased size */
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        padding: 16px; /* More padding */
    }
    
    .detail__icon svg {
        max-width: 24px;
        max-height: 24px;
    }
}

/* Ensure WhatsApp icon (filled) displays properly */
.detail__icon svg[fill="currentColor"] {
    fill: var(--primary-color);
}

/* Ensure stroke icons display properly */
.detail__icon svg[stroke="currentColor"] {
    stroke: var(--primary-color);
    stroke-width: 2; /* Ensure consistent stroke width */
}

/* Prevent any clipping on stroked paths */
.detail__icon svg path,
.detail__icon svg circle,
.detail__icon svg polyline,
.detail__icon svg line,
.detail__icon svg polygon {
    vector-effect: non-scaling-stroke; /* Keep stroke width consistent */
}
.detail__content {
    flex: 1;
    min-width: 0;
}

.detail__label {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: var(--transition-base);
}

.detail__text {
    color: var(--text-light);
    line-height: 1.7;
    word-wrap: break-word;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition-base);
}

.detail__link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    display: inline-block;
}

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

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

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

/* Contact Form Section */
.contact__form-wrapper {
    background: var(--form-bg);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.contact__form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-button);
}

.form__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--text-dark);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: var(--transition-base);
}

.form__group {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.form__label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: var(--transition-base);
    letter-spacing: -0.01em;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1.125rem);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-md);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-dark);
    transition: var(--transition-base);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: var(--form-bg);
    transform: translateY(-1px);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form__textarea {
    resize: vertical;
    min-height: clamp(120px, 25vw, 150px);
    max-height: 350px;
    line-height: 1.6;
}

/* Select Dropdown Styling */
.form__input[type="select"],
select.form__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    cursor: pointer;
}

/* Submit Button */
.form__submit {
    width: 100%;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    background: var(--gradient-button);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form__submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-base);
}

@media (hover: hover) {
    .form__submit:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-xl);
    }
    
    .form__submit:hover::before {
        left: 100%;
    }
}

.form__submit:active {
    transform: translateY(-1px);
}

.form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form__submit svg {
    transition: var(--transition-base);
}

.form__submit:hover svg {
    transform: translateX(3px);
}

/* Responsive Design */
@media (min-width: 1600px) {
    .contact__wrapper {
        max-width: 1500px;
    }
}

@media (max-width: 768px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact::before,
    .contact::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 500px) {
    .contact__detail {
        padding: 1rem;
    }
    
    .detail__icon {
        width: 45px;
        height: 45px;
    }
    
    .detail__icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contact {
        padding: 2rem 0;
    }
    
    .form__textarea {
        min-height: 80px;
    }
    
    .about__header {
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .contact__form-wrapper {
        display: none;
    }
    
    .contact::before,
    .contact::after {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .form__submit:hover,
    .contact__detail:hover,
    .detail__icon {
        transform: none;
    }
}

/* Focus Visible for Accessibility */
.form__input:focus-visible,
.form__textarea:focus-visible,
.form__submit:focus-visible,
.detail__link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading State for Form */
.form__submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.form__submit.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}