/* Modern Stylesheet for Satyajeet Prabhu Website */

/* CSS Custom Properties for theming */
:root {
    --primary-color: #fff;
    --text-color: #333333;
    --accent-color: #888888;
    --quote-color: #555555;
    --background-dark: #333;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    
    /* Typography Scale */
    --font-base: "Yanone Kaffeesatz", sans-serif;
    --font-heading: "Quicksand", sans-serif;
    --font-nav: "Advent Pro", sans-serif;
    --font-display: "Advent Pro", sans-serif;
    --font-body: "Molengo", sans-serif;
    --font-quote: "News Cycle", sans-serif;
    
    /* Typography Scale - Clear Size System */
    /* Font size variables removed - using direct pixel values instead */
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Breakpoints */
    --bp-mobile: 480px;
    --bp-tablet: 768px;
    --bp-desktop: 1024px;
    --bp-large: 1200px;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Utility Classes */
.container {
    max-width: var(--bp-large);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Navigation for Accessibility */
.skip-nav {
    position: absolute;
    top: -100px;
    left: 6px;
    background: var(--text-color);
    color: var(--primary-color);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.skip-nav:focus {
    top: 6px;
    opacity: 1;
    pointer-events: auto;
}

/* Layout Components */
.hero {
    /* background: url("../images/backgrounds/25471753_processed.jpg") bottom left/cover no-repeat fixed; */
    background: url("../images/backgrounds/25471753_processed.jpg") bottom left/cover no-repeat fixed;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== iOS BACKGROUND FIX - REMOVE IF ISSUES ===== */
/* iOS-specific background fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        background: url("../images/backgrounds/25471753_processed.jpg") 0% 0% no-repeat fixed;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-background-size: 300% 300%;
        background-size: 300% 300%;
    }
    
    /* Fallback for iOS devices that don't support fixed backgrounds */
    @supports not (background-attachment: fixed) {
        .hero {
            background: url("../images/backgrounds/25471753_processed.jpg") 0% 0% no-repeat scroll;
            -webkit-background-size: 300% 300%;
            background-size: 300% 300%;

        }
    }
}
/* ===== END iOS BACKGROUND FIX ===== */

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--shadow-dark);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Navigation Styles */
.nav {
    padding: var(--space-md) 0;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-menu a {
    font-family: var(--font-nav);
    font-size: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Mobile Navigation - Old Sidebar Style */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -33%;
    width: 33%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 80px 0 20px 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
    display: block;
    font-family: var(--font-nav);
    font-size: 16px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

/* Overlay for mobile nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Animation */
body.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg) 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
}

/* Social Links */
.social-links {
    position: fixed;
    top: 50%;
    right: var(--space-sm);
    transform: translateY(-50%);
    z-index: 100;
}

.social-links .wsite-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.social-links .wsite-social-item {
    transition: transform 0.3s ease;
}

.social-links .wsite-social-item:hover {
    transform: scale(1.1);
}

/* Social icon size for desktop */
.social-links .wsite-social-item:before {
    font-size: 28px;
}

/* Social icon size for mobile */
@media (max-width: 768px) {
    .social-links .wsite-social-item:before {
        font-size: 20px;
    }
}

/* Main Content */
.main-content {
    background: #fff;
    padding: var(--space-xl) 0 var(--space-sm) 0; 
    /* padding: var(--space-xl) 0;*/
}

.content-section {
    margin-top: 1rem;
    margin-bottom: var(--space-sm);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: var(--space-md) 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text {
    font-family: var(--font-base);
    font-size: 20px;
    line-height: 1.65;
    font-weight: 300;
}

.about-text p {
    margin-bottom: var(--space-sm);
}

.about-text .highlight {
    font-size: 1.4em;
    font-weight: 400;
    color: #222;
}

.about-text .large {
    font-size: 1.2em;
    font-weight: 400;
}

.about-text .skills {
    color: var(--accent-color);
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: var(--space-md);
}

.about-text a {
    color: #007acc;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-text a:hover {
    border-bottom-color: #007acc;
    opacity: 1;
}

/* Center alignment for the main about text block */
.about-text {
    text-align: center;
}

.about-image {
    text-align: center;
    position: sticky;
    top: var(--space-lg);
}

.about-image img {
    width: 500px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Quote Section */
.quote-section {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-sm);
    padding: var(--space-lg);
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.quote {
    font-family: var(--font-quote);
    font-size: 16px;
    color: var(--quote-color);
    font-style: italic;
    line-height: 1.6;
}

.quote-author {
    font-family: var(--font-quote);
    font-size: 16px;
    font-style: italic;
    text-align: right;
    color: #666;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--primary-color);
    text-align: center;
    padding: var(--space-sm) 0;
    font-size: 18px;
    margin-top: var(--space-sm);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-image {
        order: -1;
        position: static;
    }

    .quote-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .quote-author {
        text-align: center;
    }

    .social-links {
        position: static;
        transform: none;
        padding: var(--space-lg) 0 0 0;
        text-align: center;
    }

    .social-links .wsite-social {
        flex-direction: row;
        justify-content: center;
    }

    .about-text {
        font-size: 20px;
    }

    .quote {
        font-size: 14px;
    }

    .quote-author {
        font-size: 14px;
    }

    .footer {
        font-size: 16px;
    }

    .main-content {
        padding: var(--space-sm) 0 var(--space-xl) 0;
    }

    .content-section {
        margin-top: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-xs);
    }

    .about-text {
        font-size: 16px;
    }

    .quote {
        font-size: 14px;
    }

    .quote-author {
        font-size: 14px;
    }

    .footer {
        font-size: 14px;
    }

    .nav {
        padding: var(--space-sm) 0;
    }

    .main-content {
        padding: var(--space-sm) 0 var(--space-lg) 0;
    }
}

/* Focus styles for accessibility */
.nav-menu a:focus,
.mobile-nav a:focus,
.hamburger:focus,
.close-menu:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@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;
    }
}

