/* ===========================
   Variables & Reset
   =========================== */
:root {
    --blueberry: #5B6FCC;
    --blueberry-dark: #4A5BA8;
    --blueberry-light: #7B8EE8;
    --ocean-blue: #3A6EA5;
    --sky-blue: #A8C5E0;
    --cloud-white: #F5F8FA;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #8899A6;
    --white: #FFFFFF;

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Roboto Mono', monospace;

    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;

    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Background Gradient
   =========================== */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(91, 111, 204, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 197, 224, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(58, 110, 165, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
}

a {
    color: var(--blueberry);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--blueberry-dark);
}

/* ===========================
   Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

main {
    position: relative;
    z-index: 1;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: var(--spacing-lg) 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--sky-blue),
        transparent
    );
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(
        135deg,
        var(--text-dark) 0%,
        var(--blueberry) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.1em;
}

.tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-medium);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--blueberry);
    font-weight: 500;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1.5fr 1fr;
    }
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--blueberry-light);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    box-shadow: 0 20px 60px rgba(91, 111, 204, 0.15);
}

/* ===========================
   Photography Section
   =========================== */
.photography {
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--cloud-white) 20%,
        var(--cloud-white) 80%,
        transparent 100%
    );
}

.photography h2 {
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 968px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4 / 3;
    background: var(--cloud-white);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 0 1px rgba(91, 111, 204, 0.1);
    pointer-events: none;
}

.cta-link {
    display: inline-block;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--blueberry);
    color: var(--white);
    border-radius: calc(var(--border-radius) / 2);
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.cta-link:hover {
    background: var(--blueberry-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(91, 111, 204, 0.3);
}

/* ===========================
   Connect Section
   =========================== */
.connect {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--blueberry);
    border-radius: calc(var(--border-radius) / 2);
    color: var(--blueberry);
    font-weight: 500;
    transition: var(--transition);
    background: var(--white);
}

.social-link:hover {
    background: var(--blueberry);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91, 111, 204, 0.2);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* ===========================
   Footer
   =========================== */
footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid var(--sky-blue);
    margin-top: var(--spacing-lg);
}

footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.5s;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .hero {
        min-height: 40vh;
    }

    .about-image::before {
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        justify-content: center;
    }
}

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

:focus-visible {
    outline: 2px solid var(--blueberry);
    outline-offset: 4px;
}
