:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #161616;
    --text-primary: #f8f8f8;
    --text-secondary: #b0b0b0;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dim: #4f46e5;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Subtle gradient background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse 80% 50% at 50% -20%,
        rgba(99, 102, 241, 0.15),
        transparent
    );
    pointer-events: none;
    z-index: 0;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 3rem 1.5rem;
    z-index: 1;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 380px 1fr;
        gap: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        gap: 5rem;
    }
}

/* Profile Photo - Rectangular Portrait */
.profile-photo-container {
    position: relative;
    animation: fadeInLeft 1s ease-out;
    justify-self: center;
}

@media (min-width: 768px) {
    .profile-photo-container {
        justify-self: end;
    }
}

.profile-photo-wrapper {
    position: relative;
    width: 280px;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        #252525 100%
    );
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1024px) {
    .profile-photo-wrapper {
        width: 320px;
        height: 420px;
    }
}

.profile-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-light),
        var(--accent)
    );
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.profile-photo-wrapper:hover::before {
    opacity: 0.4;
}

.profile-photo-wrapper:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(99, 102, 241, 0.2);
}

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

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

/* Text Content */
.text-content {
    animation: fadeInRight 1s ease-out;
}

.greeting {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--accent-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.school {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--accent-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.bio {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.contact-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-light)
    );
    color: white;
    border: none;
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--accent-light),
        var(--accent)
    );
    transition: left 0.3s ease;
}

.contact-btn:hover::before {
    left: 0;
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.nav-btn {
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav-btn span {
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    padding: 4rem 1.5rem;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    position: relative;
    z-index: 1;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--accent-light) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-module {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.profile-module:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.module-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.module-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.module-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.module-content h3:first-child {
    margin-top: 0;
}

.module-content p {
    margin-bottom: 1rem;
}

.module-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.module-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.module-content li::before {
    content: "→";
    position: absolute;
    left: -1.5rem;
    color: var(--accent);
}

/* Photography Section */
.photography-container {
    max-width: 1200px;
    margin: 0 auto;
}

.photo-instructions {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: center;
}

.photo-instructions p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.photo-item {
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.photo-placeholder {
    aspect-ratio: 1/1;
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        #252525 100%
    );
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.photo-item:hover .photo-placeholder {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
}

/* Styling for actual photo images */
.photo-image-wrapper {
    aspect-ratio: 1/1;
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        #252525 100%
    );
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-image-wrapper::after {
    content: "🔍 Click to enlarge";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-image-wrapper:hover::after {
    opacity: 1;
}

.photo-item:hover .photo-image-wrapper {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-8px);
}

.photo-placeholder-text {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.3;
}

.photo-caption {
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.photo-camera {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.lightbox-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lightbox-camera {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--accent-light)
    );
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 0.5rem;
}

.lightbox-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.lightbox-download svg {
    width: 18px;
    height: 18px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation:
        fadeIn 1s ease-out 2s forwards,
        float 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
}

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

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Mobile optimizations */
@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }

    .profile-photo-wrapper {
        width: 240px;
        height: 320px;
    }

    .cta-group {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .profile-module {
        padding: 1.5rem;
    }

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

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
}
