/*
 * Sannidhya Portfolio - Main Stylesheet
 * Theme: Wheel of Time
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Wheel of Time Inspired */
    --color-background: #111620; /* Deep midnight blue, near-black */
    --color-surface: #1a1f2c; /* Slightly lighter dark blue-grey */
    --color-primary: #d4af37; /* Regal gold */
    --color-secondary: #c0c0c0; /* Silver */
    --color-accent: #f8f0e3; /* Ethereal white with warm undertone */
    --color-text: #f8f8ff; /* Off-white */
    --color-text-secondary: rgba(248, 249, 250, 0.8); /* Light with high contrast */
    --color-text-tertiary: rgba(248, 249, 250, 0.6);
    
    /* Additional Theme Colors */
    --color-thread-gold: #d4af37; /* For golden thread elements */
    --color-thread-silver: #e0e0e0; /* For silver thread elements */
    --color-thread-blue: #4a6fa5; /* For subtle blue glows */
    --color-wheel-dark: #2a2a2a; /* Dark gray for wheel structure */
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Space Grotesk', sans-serif;
    
    /* Transitions */
    --transition-slow: 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    --transition-medium: 0.4s cubic-bezier(0.76, 0, 0.24, 1);
    --transition-fast: 0.2s cubic-bezier(0.76, 0, 0.24, 1);
}

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

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
    background-image: linear-gradient(to bottom, var(--color-thread-gold), var(--color-thread-silver));
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-thread-silver);
    background-image: linear-gradient(to bottom, var(--color-secondary), var(--color-thread-gold));
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    opacity: 0.035;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfh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3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
}

/* Cursor */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    transition: transform .1s ease;
    box-shadow: 0 0 8px var(--color-thread-silver);
}

.cursor-follower {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: 1px solid var(--color-thread-silver);
    transition: transform .3s ease;
    box-shadow: 0 0 12px rgba(224, 224, 224, 0.3);
    opacity: 0.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.large-text {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--color-accent);
}

/* Fancy link underline animation for general links */
a:not(.btn):not(.menu-link):not(.project-link):not(.footer-link):not(.social-link)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a:not(.btn):not(.menu-link):not(.project-link):not(.footer-link):not(.social-link):hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Layout */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem 10rem 350px; /* Added left padding for wheel */
}

/* Adjust content layout to account for the wheel */
main {
    margin-left: 100px; /* Shift content slightly right to avoid wheel overlap */
}

.section-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-right: 1.5rem;
    margin-bottom: 0;
}

.section-title {
    font-size: 4.5rem; /* Slightly larger */
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

/* Add decorative underline to section titles */
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-accent);
}

.menu-trigger {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.menu-trigger:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50vmax;
    height: 50vmax;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(192, 192, 192, 0.05) 40%, rgba(74, 111, 165, 0.03) 70%, rgba(74, 111, 165, 0) 100%);
    z-index: -1;
    border-radius: 50%;
    animation: pulse 12s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.0);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 8rem;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.7) 20%,
        rgba(224, 224, 224, 0.8) 50%,
        rgba(212, 175, 55, 0.7) 80%,
        rgba(212, 175, 55, 0) 100%);
    bottom: -10px;
    left: -10%;
    transform-origin: center;
    transform: scaleX(0);
    animation: lineReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.8s;
    box-shadow: 0 0 8px rgba(224, 224, 224, 0.4);
}

@keyframes lineReveal {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: var(--color-text-secondary);
    margin-bottom: 4rem;
    position: relative;
}

/* Style the bullet points in the subtitle */
.hero-subtitle .char:nth-child(13),
.hero-subtitle .char:nth-child(25) {
    color: var(--color-accent);
    position: relative;
}

.scroll-indicator {
    position: absolute;

/* About Focus Areas */
.about-focus-areas {
    margin-top: 2rem;
}

.focus-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.focus-list {
    list-style: none;
    padding-left: 0;
}

.focus-list li {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 25px;
    color: var(--color-text-secondary);
}

.focus-list li::before {
    content: '\2022'; /* Bullet point */
    color: var(--color-accent);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-left: -25px;
    position: absolute;
    left: 10px;
    font-size: 1.2rem;
}
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
}

.scroll-arrow {
    width: 1.5px;
    height: 4rem;
    background-color: var(--color-text-tertiary);
    margin: 1rem auto 0;
    position: relative;
    overflow: hidden;
}

.scroll-arrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-thread-gold), var(--color-thread-silver));
    animation: scrollIndicator 2s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(224, 224, 224, 0.3);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6rem;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    transition: transform 0.3s ease;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.project:nth-child(even) .project-content {
    direction: ltr;
}

.project-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
}

/* Add gradient overlay to project images */
.project-image-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-thread-gold) 0%, rgba(74, 111, 165, 0.3) 50%, transparent 80%);
    opacity: 0.5;
    z-index: 1;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.project:hover .project-image-container::before {
    opacity: 0.4;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.project:hover .project-image {
    transform: scale(1.05);
}

.project-category {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.project-link {
    display: inline-block;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0;
}

.project-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.project-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Timeline Section */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-wrapper {
    position: relative;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px; /* Thicker line */
    height: 100%;
    background: linear-gradient(to bottom, var(--color-thread-gold), var(--color-thread-silver), var(--color-thread-blue));
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(224, 224, 224, 0.2);
}

.timeline-item {
    position: relative;
    padding-bottom: 4rem;
    padding-left: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 4rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    background-color: var(--color-background);
    padding: 0.5rem 0;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 3px;
}

.timeline-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--color-text-secondary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.2rem;
}

.contact-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    position: relative;
}

.social-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
footer {
    background-color: var(--color-surface);
    padding: 4rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.footer-logo::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -8px;
    left: 0;
}

.footer-copyright {
    color: var(--color-text-tertiary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

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

/* Animations */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Media Queries */
@media (max-width: 1400px) {
    .section-wrapper {
        padding: 10rem 2rem 10rem 300px; /* Reduced left padding */
    }
    
    main {
        margin-left: 80px; /* Reduced left margin */
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    
    .section-wrapper {
        padding: 10rem 2rem 10rem 250px; /* Further reduced left padding */
    }
    
    main {
        margin-left: 50px; /* Reduced left margin */
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project:nth-child(even) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .section-wrapper {
        padding: 8rem 2rem 8rem 200px; /* Further reduced left padding */
    }
    
    main {
        margin-left: 30px; /* Minimal left margin */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .section-wrapper {
        padding: 6rem 1.5rem; /* No left padding when wheel is hidden */
    }
    
    main {
        margin-left: 0; /* No left margin when wheel is hidden */
    }
    
    .section-title-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-number {
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}