@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.1/css/all.min.css');

/* Theme System - Base Variables */
:root {
    /* Animation Colors - Optimized for Daytime */
    --day: #F0F8FF;          /* Alice Blue - fresh, crisp sky color */
    --morning: #B7D1E2;      /* Soft sky blue - more vibrant morning */
    --evening: #FFD700;      /* Pure golden - warmer evening */
    --dusk: #FF7F50;        /* Coral - warmer dusk */
    --night: #003730;       /* Unchanged */
    --dawn: #16132b;        /* Unchanged */
    --light: var(--day);
    --dark: var(--night);
    --shadow: #1a1917;
    --bounce-light: #FFE5B4; /* Peach - warmer, natural light bounce */
    --timing-fn: cubic-bezier(0.455, 0.190, 0.000, 0.985);


}

/* Dark Theme */
[data-theme="dark"] {
    --primary-bg: #16132b;
    --content-bg: rgba(22, 19, 43, 0.313);
    --card-bg: rgba(22, 19, 43, 0.60);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.95);
    --accent-color: #9fb3bf;
    --gradient-start: rgba(159, 179, 191, 0.37);
    --gradient-end: rgba(22, 19, 43, 0.5);
    --bounce-light: #2a2640;
}

/* Light Theme */
[data-theme="light"] {
    --primary-bg: var(--day);
    --content-bg: rgba(240, 248, 255, 0.313);  /* Based on new day color */
    --card-bg: rgba(255, 246, 241, 0.5);      /* Reduced opacity for softer appearance */
    --text-primary: #2F4F4F;                   /* Darker slate for better contrast */
    --text-secondary: rgba(47, 79, 79, 0.95);  /* Matching slate with transparency */
    --accent-color: #FF7F50;                   /* Coral - more vibrant accent */
    --gradient-start: rgba(255, 127, 80, 0.37); /* Based on new accent */
    --gradient-end: rgba(240, 248, 255, 0.5);   /* Based on new day color */
    --bounce-light: #FFE5B4;                    /* New bounce light color */
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    background-image: url('20.png');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Bahnschrift', sans-serif;
    animation-duration: 0s;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container and Content */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--content-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px) grayscale(50%);
    background-image: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    max-width: 800px;
    margin: 20px;
    width: calc(100% - 80px);
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    /* margin-bottom: 40px; */
    width: 100%;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info {
    text-align: left;
    flex: 1;
}

h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.description {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Navigation */
.nav-links {
    display: flex;
    margin: 15px 0;
    gap: 20px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--overlay-bg);
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: var(--overlay-hover);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    max-height: 0;
    overflow: hidden;
    text-align: left;
    padding: 0;
    opacity: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    margin: 0;
}

.about-section.visible {
    max-height: 5000px;
    padding: 20px;
    margin: 20px 0;
    opacity: 1;
}

.about-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: var(--text-primary);
}

.about-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-primary);
    font-size: 32px;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

.social-links a i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Separator */
.separator {
    width: 100%;
    height: 1px;
    background-color: var(--separator-color);
    margin: 40px 0;
}

/* Projects Section */
.projects {
    text-align: center;
    width: 100%;
}

.project-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0;
}

.project {
    width: 100%;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.project-link:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
}

.project-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.project-content {
    flex: 1;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Sunlit Effect Styles */
#dappled-light {
    pointer-events: none;
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: 0;
    mix-blend-mode: overlay;
    opacity: 0.7;
}

#progressive-blur {
    position: absolute;
    height: 100%;
    width: 100%;
}

#progressive-blur>div {
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0;
    backdrop-filter: blur(var(--blur-amount));
    mask-image: linear-gradient(252deg, transparent, transparent var(--stop1), black var(--stop2), black);
}

#progressive-blur>div:nth-child(1) {
    --blur-amount: 6px;
    --stop1: 0%;
    --stop2: 0%;
}

#progressive-blur>div:nth-child(2) {
    --blur-amount: 12px;
    --stop1: 40%;
    --stop2: 80%;
}

#progressive-blur>div:nth-child(3) {
    --blur-amount: 48px;
    --stop1: 40%;
    --stop2: 70%;
}

#progressive-blur>div:nth-child(4) {
    --blur-amount: 96px;
    --stop1: 70%;
    --stop2: 80%;
}

#glow {
    position: absolute;
    background: linear-gradient(309deg, var(--bounce-light), var(--bounce-light) 20%, transparent);
    transition: background 1.0s var(--timing-fn);
    height: 100%;
    width: 100%;
    opacity: 0.5;
}

#glow-bounce {
    content: "";
    position: absolute;
    background: linear-gradient(355deg, var(--bounce-light) 0%, transparent 30%, transparent 100%);
    transition: background 1.0s var(--timing-fn);
    opacity: 0.5;
    height: 100%;
    width: 100%;
    bottom: 0;
}

.perspective {
    position: absolute;
    transition: transform 1.7s var(--timing-fn), opacity 4s ease;
    top: -30vh;
    right: 0;
    width: 80vw;
    height: 130vh;
    opacity: 0.07;
    background-blend-mode: darken;
    transform-origin: top right;
    transform-style: preserve-3d;
    transform: matrix3d(0.7500, -0.0625, 0.0000, 0.0008,
            0.0000, 1.0000, 0.0000, 0.0000,
            0.0000, 0.0000, 1.0000, 0.0000,
            0.0000, 0.0000, 0.0000, 1.0000);
}

.dark .perspective {
    opacity: 0.3;
    transform: matrix3d(0.8333, 0.0833, 0.0000, 0.0003,
            0.0000, 1.0000, 0.0000, 0.0000,
            0.0000, 0.0000, 1.0000, 0.0000,
            0.0000, 0.0000, 0.0000, 1.0000);
}

#leaves {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    bottom: -20px;
    right: -700px;
    width: 1600px;
    height: 1400px;
    background-image: url("./leaves.png");
    filter: url(#wind);
    animation: billow 8s ease-in-out infinite;
}

#blinds {
    position: relative;
    width: 100%;
}

#blinds .shutter,
#blinds .bar {
    background-color: var(--shadow);
}

#blinds>.shutters {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 60px;
    transition: gap 1.0s var(--timing-fn);
}

.dark #blinds>.shutters {
    gap: 20px;
}

#blinds>.vertical {
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.vertical>.bar {
    width: 5px;
    height: 100%;
}

.shutter {
    width: 100%;
    height: 40px;
    transition: height 1.0s var(--timing-fn);
}

.dark .shutter {
    height: 80px;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.theme-switcher:hover {
    transform: scale(1.1);
}

@keyframes billow {
    0% {
        transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1);
    }
    25% {
        transform: perspective(400px) rotateX(1deg) rotateY(2deg) scale(1.02);
    }
    50% {
        transform: perspective(400px) rotateX(-4deg) rotateY(-2deg) scale(0.97);
    }
    75% {
        transform: perspective(400px) rotateX(1deg) rotateY(-1deg) scale(1.04);
    }
    100% {
        transform: perspective(400px) rotateX(0deg) rotateY(0deg) scale(1);
    }
}

@keyframes sunrise {
    0% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.3;
    }
}

@keyframes sunset {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.9;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 600px) {
    .content {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 30px);
        background-color: transparent;
        background-image: none;
        backdrop-filter: none;
        box-shadow: none;
    }

    .profile {
        flex-direction: row;
        align-items: center;
        text-align: left;
        margin-bottom: 15px;
        gap: 15px;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .info {
        text-align: left;
        flex: 1;
        min-width: 0;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin: 10px 0;
    }

    .nav-link {
        font-size: 14px;
        padding: 4px 8px;
    }

    .social-links {
        gap: 12px;
        margin-top: 15px;
    }

    .social-links a {
        font-size: 24px;
    }

    .social-links a i {
        width: 24px;
        height: 24px;
    }

    .separator {
        margin: 20px 0;
    }

    .project-container {
        padding: 0;
        gap: 15px;
    }

    .project-link {
        padding: 12px;
        gap: 15px;
    }

    .project-icon {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .project-title {
        font-size: 16px;
        margin: 0 0 3px 0;
    }

    .project-description {
        font-size: 13px;
    }

    .about-section {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }
    
    .about-section.visible {
        max-height: 5000px;
        padding: 20px;
        margin: 20px 0;
        opacity: 1;
    }

    .about-section h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .about-section p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .theme-switcher {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    /* #dappled-light {
        display: none; /* Completely removes the effect */
    /* } */

    /* Also disable related effects for better performance */
  
    .perspective,
    #leaves,
    #blinds {
        display: none;
    } 

    .nav-link {
        padding: 6px 12px;
        min-width: 70px;
        font-size: 14px;
    }
    
    .nav-links {
        gap: 12px;
    }
}
/* Navigation Buttons */
.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    min-width: 80px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Optional: Add a light glow effect on hover */
.nav-link:hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2)
    );
    z-index: -1;
    filter: blur(4px);
}

/* Ensure proper spacing and layout for nav links container */
.nav-links {
    display: flex;
    gap: 16px;
    margin: 15px 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .nav-link {
    background-color: rgba(22, 19, 43, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-link:hover {
    background-color: rgba(22, 19, 43, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

