/* 
  ========================================
  Premium Light Theme - Design Tokens
  ========================================
*/
:root {
    /* Colors */
    --bg-main: #eef2ff; /* Very light lavender/blue background */
    --bg-surface: #ffffff; /* White cards and sidebars */
    
    --primary-color: #6366f1; /* Indigo */
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    --accent-color: #f97316; /* Orange */
    
    --text-heading: #1e293b; /* Dark Slate */
    --text-body: #64748b; /* Muted Greyish Slate */
    --text-light: #94a3b8;
    
    /* Layout */
    --sidebar-width: 80px;
    --topbar-height: 70px;
    
    /* Styling */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.03);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 
  ========================================
  Layout Basics
  ========================================
*/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-surface);
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 90;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 40px;
    min-height: 100vh;
}

/* 
  ========================================
  Sidebar & Topbar Components
  ========================================
*/
.sidebar-logo {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.sidebar-nav a, .sidebar-bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 auto;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-bottom a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.sidebar-nav a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.sidebar-bottom {
    margin-top: auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    padding: 10px 20px;
    border-radius: 30px;
    width: 300px;
}

.search-wrapper i {
    color: var(--text-light);
    margin-right: 10px;
}

.search-wrapper input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-heading);
    width: 100%;
    font-family: inherit;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-body);
    margin-left: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.profile-mini {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.profile-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
  ========================================
  Common Elements
  ========================================
*/
.section {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    font-weight: 800;
}

.section-header .highlight {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 1.1rem;
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

/* Card Bottom Wave - Pure CSS approach */
.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.05);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tags span {
    background: var(--bg-main);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 
  ========================================
  Hero Section
  ========================================
*/
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 40px;
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-text .highlight {
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
}

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; color: #61DAFB; animation-delay: 0s; }
.icon-2 { bottom: 20%; right: 0; color: #DD0031; animation-delay: 1s; }
.icon-3 { bottom: 10%; left: 20%; color: #68A063; animation-delay: 2s; }

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

/* 
  ========================================
  About & Education Section
  ========================================
*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card h3, .education-card h3 {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.personal-details {
    margin-top: 20px;
}

.personal-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.personal-details i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.edu-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.edu-details h4 {
    color: var(--text-heading);
    font-size: 1.1rem;
}

.edu-details h5 {
    color: var(--text-light);
    font-weight: 500;
}

.edu-details .year {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 10px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 
  ========================================
  Skills Section
  ========================================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.skill-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.skill-card h3 {
    color: var(--text-heading);
    margin-bottom: 15px;
}

.skill-card .tags {
    justify-content: center;
}

/* 
  ========================================
  Experience Timeline
  ========================================
*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-light);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
    z-index: 2;
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.timeline-card h4 {
    color: var(--text-heading);
    margin-bottom: 15px;
}

.exp-list {
    padding-left: 20px;
    list-style-type: disc;
    color: var(--text-body);
}

.exp-list li {
    margin-bottom: 8px;
}

/* 
  ========================================
  Projects Section (Mac OS Style)
  ========================================
*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mac-window {
    padding: 0; /* Override default card padding */
    display: flex;
    flex-direction: column;
}

.mac-window::after {
    display: none; /* No bottom wave for mac window */
}

.mac-header {
    background: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-close { background: #ef4444; }
.mac-min { background: #f59e0b; }
.mac-max { background: #10b981; }

.mac-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-right: 44px; /* Balance the buttons width */
}

.mac-content {
    display: flex;
    flex-direction: column;
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--text-heading);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-info p {
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 
  ========================================
  Contact Section
  ========================================
*/
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-heading);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text-heading);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.w-100 {
    width: 100%;
    gap: 10px;
}

.info-items {
    margin-top: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--text-heading);
    margin-bottom: 5px;
}

.info-text p {
    color: var(--text-body);
    font-size: 0.95rem;
}

.mt-4 {
    margin-top: 30px;
}

.social-links-large {
    display: flex;
    gap: 20px;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-large a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-simple {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 
  ========================================
  Responsive Design
  ========================================
*/
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 0 !important;
        left: 0 !important;
    }
    
    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        top: auto;
        bottom: 0;
        padding: 0 20px;
        justify-content: space-between;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .sidebar-logo, .sidebar-bottom {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
    
    .topbar {
        left: 0;
        width: 100%;
        padding: 0 20px;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 70px;
        padding: 20px;
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .about-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper {
        width: 200px;
    }
}
