/* HASTANA Website Custom Styles */

/* CSS Custom Properties */
:root {
    --hastana-blue: #1e40af;
    --hastana-red: #dc2626;
    --hastana-black: #1a1a1a;
    --hastana-gray: #6b7280;
    --hastana-light-gray: #f3f4f6;

    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

/* Base Styles */
body {
    font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
    scroll-behavior: smooth;
}

/* Hero Background Pattern */
.hero-bg {
    background: linear-gradient(
            135deg,
            rgba(26, 26, 26, 0.7),
            rgba(30, 64, 175, 0.6),
            rgba(220, 38, 38, 0.5)
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="wedding-pattern" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="50" cy="50" r="10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23wedding-pattern)"/></svg>');
    background-size: cover, 100px 100px;
    background-position: center, 0 0;
    background-attachment: fixed;
}

/* Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

/* Card Components */
.card-hover {
    transition: var(--transition-base);
    will-change: transform;
    box-shadow: var(--shadow-card);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

/* Gallery Components */
.gallery-item {
    transition: var(--transition-base);
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Navigation Styles */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--hastana-blue);
}

.nav-link.active {
    color: var(--hastana-blue);
    font-weight: 600;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--hastana-blue);
}

.mobile-nav-link.active {
    color: var(--hastana-blue);
    font-weight: 600;
    background-color: #eff6ff;
    padding: 0.75rem 0.75rem;
    border-radius: 0.375rem;
}

/* Form Components */
.form-input {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0.5rem 0.75rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--hastana-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button Components */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-base:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.btn-base:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-base:hover:not(:disabled) {
    transform: scale(1.05);
}

.btn-base:active:not(:disabled) {
    transform: scale(0.95);
}

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

.btn-primary:hover:not(:disabled) {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: var(--hastana-red);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #b91c1c;
}

/* Utility Classes */
.text-hastana-blue {
    color: var(--hastana-blue);
}
.text-hastana-red {
    color: var(--hastana-red);
}
.bg-hastana-blue {
    background-color: var(--hastana-blue);
}
.bg-hastana-red {
    background-color: var(--hastana-red);
}
.border-hastana-blue {
    border-color: var(--hastana-blue);
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--hastana-blue),
        var(--hastana-red)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Loading States */
.page-loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.page-loaded .page-loading {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--hastana-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-bg {
        min-height: 80vh;
        background-attachment: scroll;
    }

    .hero-bg h1 {
        font-size: 2.5rem;
    }

    .hero-bg .text-2xl {
        font-size: 1.25rem;
    }

    .card-hover {
        padding: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gradient-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-bg h1 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .card-hover {
        padding: 1rem;
    }
}

/* Performance Optimizations */
.portfolio-grid img,
.gallery-item img {
    will-change: transform, filter;
}

/* Print Styles */
@media print {
    .floating-animation,
    .card-hover,
    footer {
        animation: none !important;
        transform: none !important;
    }

    .bg-hastana-blue,
    .bg-hastana-red {
        background: transparent !important;
        color: black !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --hastana-gray: #9ca3af;
        --hastana-light-gray: #374151;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid currentColor;
    }

    .nav-link:hover,
    .nav-link.active {
        text-decoration: underline;
    }
}

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

    .floating-animation {
        animation: none;
    }
}
