/* Moved from index.html <style> */
:root {
    /* Dark Theme Colors */
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --highlight: #06b6d4;
    --light: #f8fafc;
    --gray: #64748b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Light Theme Colors */
    --primary-light: #ffffff;
    --secondary-light: #f8fafc;
    --accent-light: #3b82f6;
    --highlight-light: #06b6d4;
    --light-light: #0f172a;
    --gray-light: #64748b;
    --text-primary-light: #1e293b;
    --text-secondary-light: #334155;
    --success-light: #10b981;
    --warning-light: #f59e0b;
    --error-light: #ef4444;
    --border-light: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark-light: rgba(0, 0, 0, 0.1);
}

/* Light Theme */
[data-theme="light"] {
    --primary: var(--primary-light);
    --secondary: var(--secondary-light);
    --accent: var(--accent-light);
    --highlight: var(--highlight-light);
    --light: var(--light-light);
    --gray: var(--gray-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --success: var(--success-light);
    --warning: var(--warning-light);
    --error: var(--error-light);
    --border: var(--border-light);
    --shadow: var(--shadow-light);
    --shadow-dark: var(--shadow-dark-light);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    border-color: var(--highlight);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    color: var(--highlight);
    transform: rotate(180deg);
}

/* Theme transition for smooth switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 4px 20px var(--shadow-dark);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px var(--shadow-dark);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--highlight);
}

.logo span {
    color: var(--highlight);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav ul li a:hover {
    color: var(--highlight);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
    transition: width 0.3s ease;
    border-radius: 1px;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--highlight) 0%, transparent 70%);
    opacity: 0.08;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
    max-width: 650px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    color: var(--highlight);
    -webkit-text-fill-color: var(--highlight);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--accent) 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--highlight), var(--accent));
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    /* max-width: 350px; */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow-dark);
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-img:hover::before {
    opacity: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--highlight) 0%, var(--accent) 100%);
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 52%;
}

.timeline-content {
    background: var(--secondary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    min-height: 220px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--highlight);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--highlight);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--highlight);
    font-weight: 700;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-content .date {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--highlight);
    font-weight: 500;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Education Section */
.education {
    background: var(--secondary);
}

.education-item {
    background: var(--primary);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--highlight);
}

.education-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--highlight);
    font-weight: 700;
}

.education-item h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.education-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: var(--secondary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--highlight);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--highlight);
    display: flex;
    align-items: center;
    font-weight: 700;
}

.skill-category h3 i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--accent);
}

.skill-list {
    list-style: none;
    flex: 1;
}

.skill-list li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}

.skill-list li:hover {
    color: var(--text-primary);
}

.skill-list li::before {
    content: '▹';
    color: var(--highlight);
    margin-right: 12px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: var(--secondary);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--highlight) 0%, var(--accent) 100%);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover {
    transform: translateY(-5px);
    color: var(--text-primary);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1400px) {
    .timeline {
        max-width: 1100px;
    }
    
    .timeline-item {
        width: 47%;
    }
    
    .timeline-item:nth-child(even) {
        left: 53%;
    }
}

@media (max-width: 1200px) {
    .timeline {
        max-width: 1000px;
    }
    
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(even) {
        left: 52%;
    }
    
    .skills-container {
        max-width: 800px;
        gap: 35px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline {
        max-width: 700px;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0 !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -50px;
    }
    
    .timeline-content {
        min-height: auto;
        padding: 30px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .timeline {
        max-width: 100%;
    }
    
    .timeline-item {
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-category {
        padding: 30px;
    }
} 

/* Responsive theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
} 