@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    --bg-color: #030303;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #a855f7; /* Purple */
    --accent-3: #ec4899; /* Pink */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-1: #4f46e5;
    --accent-2: #9333ea;
    --accent-3: #db2777;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
}


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

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1), transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.03), transparent 70%);
    filter: blur(80px);
}

[data-theme="light"] .bg-gradient {
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.05), transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.02), transparent 80%);
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s var(--transition);
}

nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    xheight: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    xmax-width: 600px;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* Projects Section */
.section-title {
    font-size: 2.5rem;
    margin-top:1em;
    margin-bottom: 1rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s var(--transition), border-color 0.4s var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-1);
    background: var(--glass-bg);
}

[data-theme="light"] .project-card:hover {
    background: #fff;
    box-shadow: 0 20px 40px 0 rgba(148, 163, 184, 0.2);
}


.project-img {
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s var(--transition);
}

.project-card:hover .project-img img {
    opacity: 0.9;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-1);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-2);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.exp-header h3 { color: var(--text-primary); }
.exp-date { color: var(--accent-3); font-weight: 600; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1000px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    header { padding: 1.5rem 0; }
    nav { display: none; }
    .project-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
}

.slide {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.slide-caption-container {
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

[data-theme="light"] .slide-caption-container {
    background: rgba(255, 255, 255, 0.8);
}


.slide-caption {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: calc(50% - 30px);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(99, 102, 241, 0.8);
}

/* Pagination Dots */
.dot-container {
    text-align: center;
    padding: 1rem;
    position: absolute;
    bottom: 80px; /* Above caption */
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--accent-1);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    transition: all 0.3s var(--transition);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-1);
}

[data-theme="light"] .theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: none; }
.theme-toggle .moon { display: none; }
.theme-toggle .sun { display: block; }


@keyframes fadeIn {
    from {opacity: 0.4} 
    to {opacity: 1}
}



.project-card .project-img .overlay{
    position:absolute;
    color:white;
    background-color:rgba(0,0,0,0.5);
    padding:4px;
    border-radius:5px;
    
}

.project-img img{
    object-fit:contain;

}

.project-grid {
    margin-bottom: 1em;
    margin-top: 1em;
    margin-left: 2em;
}
.sub-section-title{
    margin-top:2em;
}
.project-card{
    max-height:374px;
    height:100%;
}
#p-heroDesc{
    max-width:100%;
    margin-bottom:auto;
}
#project-content .hero {
    height:auto;
    padding-top:0px;
    margin-top:1em;
    margin-bottom:1em;
}

#project-content .slide .slide-image{
    object-fit: contain;
    aspect-ratio: auto;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
#project-content .slideshow-container{
    border-width:4px;
    border-color:var(--accent-1);;
}

#area-resultsTech{
    display: grid; 
    grid-template-columns: 1fr 2fr; 
    gap: 4rem; 
    margin-bottom: 4rem; 
    align-items: start;
    margin-top:20px;    
}
.project-years{
    font-size:0.5em;
}

.prev, .next {
    top:10em;
}
.teddy-ic-container .teddy-ic-slider, .teddy-ic-container:hover .teddy-ic-slider, .teddy-ic-handle{
    background-color:var(--accent-1) !important;
}
.teddy-ic-container .teddy-ic-slider{
    width:6px;
}
/*
.teddy-ic-container{
    width: 100%; 
    max-width: 1024px; 
    min-height: 400px; 
    margin: 0 auto; 
    overflow: hidden;
}
#project-content .slide .teddy-ic-container img{
    object-fit: cover;
}
.teddy-ic-container .teddy-ic-circle{
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border: 4px solid #fff;
    background-color:var(--accent-1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
    */
/*
.teddy-ic-container .teddy-ic-handle {
    width: 6px;
    margin-left: -3px;
}
    */
    /*
.teddy-ic-container .teddy-ic-slider{
    background-color:var(--accent-1);
    box-shadow: 0px 0px 8px rgba(0,0,0,0.5);
}

.teddy-ic-container .teddy-ic-overlay img{
    object-fit: contain;
}*/

.tech-stack-heading{
    color:var(--accent-1);
}
.tech-stack-content{
    margin-left:30px;
}
.robogifter-bullets{
    margin-left:30px;
}

.skills-content{
    margin-left:30px;
}

.resume-download{
    margin-top:30px;
}
#projects{
    margin-top:30px;
}