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

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-bg: #dbeafe;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --success: #22c55e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    padding: 20px;
    background: #f1f5f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-icon > svg:first-child {
    position: relative;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line-1, .logo-line-2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-dark);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn {
    padding: 10px 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Contact Section */
.contact-section {
    padding: 60px 48px 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative Sparkles */
.sparkle {
    position: absolute;
    color: var(--primary-light);
    font-size: 20px;
    opacity: 0.4;
    animation: sparkleFloat 4s ease-in-out infinite;
    pointer-events: none;
}

.sparkle-1 {
    bottom: 60px;
    right: 80px;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 30px;
    right: 40px;
    font-size: 16px;
    animation-delay: 1s;
}

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* Contact Info Column */
.contact-info {
    animation: fadeInLeft 0.6s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-intro {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 1.5;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

.info-icon-circle {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: all 0.3s ease;
}

.info-item:hover .info-icon-circle {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg) scale(1.05);
}

.info-icon-circle svg {
    width: 22px;
    height: 22px;
}

.info-text-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.info-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
    animation: fadeInRight 0.6s ease;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.field-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.field-input,
.field-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s ease;
    outline: none;
    resize: none;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #94a3b8;
}

.field-input:hover,
.field-textarea:hover {
    border-color: #cbd5e1;
}

.field-input:focus,
.field-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-field:focus-within .field-label {
    color: var(--primary);
}

.field-input.error,
.field-textarea.error {
    border-color: #ef4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-textarea {
    min-height: 140px;
    font-family: inherit;
}

/* Send Button */
.btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    align-self: flex-start;
    min-width: 180px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-send:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-send svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-send:hover svg {
    transform: translate(3px, -3px) rotate(-10deg);
}

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: successFadeIn 0.5s ease;
}

.form-success.active {
    display: block;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon-small {
    width: 64px;
    height: 64px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    position: relative;
}

.success-icon-small::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.2;
    animation: pulseRing 2s ease-in-out infinite;
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0; }
}

.success-icon-small svg {
    width: 32px;
    height: 32px;
    stroke-width: 3;
    position: relative;
    z-index: 1;
}

.success-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.success-text {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-reset {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-reset:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Field character counter (visual only) */
.form-field[data-counter="true"]::after {
    content: attr(data-count);
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 11px;
    color: var(--text-light);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 20px 32px;
    }
    
    .nav-list {
        gap: 24px;
    }
    
    .contact-section {
        padding: 48px 32px 60px;
    }
    
    .contact-grid {
        gap: 40px;
    }
    
    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .nav, .nav-btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .contact-section {
        padding: 40px 24px 60px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .contact-intro {
        margin-bottom: 32px;
    }
    
    .info-list {
        gap: 18px;
    }
    
    .info-icon-circle {
        width: 44px;
        height: 44px;
    }
    
    .info-icon-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .info-label {
        font-size: 15px;
    }
    
    .field-input,
    .field-textarea {
        padding: 12px 16px;
    }
    
    .btn-send {
        width: 100%;
        align-self: stretch;
    }
    
    .sparkle-1 {
        bottom: 20px;
        right: 30px;
    }
    
    .sparkle-2 {
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 28px;
    }
    
    .contact-intro {
        font-size: 15px;
    }
    
    .info-item {
        gap: 12px;
    }
    
    .info-icon-circle {
        width: 40px;
        height: 40px;
    }
    
    .info-icon-circle svg {
        width: 18px;
        height: 18px;
    }
    
    .field-textarea {
        min-height: 120px;
    }
}
