/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.5);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Light Mode Colors */
[data-theme="light"] {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --accent-color: #dc2626;
    --dark-bg: #faebd7;
    --darker-bg: #ffebcd;
    --light-text: #1c1917;
    --gray-text: #57534e;
    --card-bg: rgba(255, 250, 240, 0.9);
}

/* Light Mode Adjustments */
[data-theme="light"] .background-animation {
    opacity: 0.4;
}

[data-theme="light"] .shape {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 88, 12, 0.08));
}

[data-theme="light"] body {
    background: linear-gradient(to bottom, #ffebcd 0%, #faebd7 100%);
}

[data-theme="light"] .hero {
    background: transparent;
}

[data-theme="light"] .section:nth-child(even) {
    background: rgba(250, 235, 215, 0.5);
}

[data-theme="light"] .navbar {
    background: rgba(255, 235, 205, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .section {
    background: transparent;
}

[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .education-card,
[data-theme="light"] .writing-card,
[data-theme="light"] .travel-card {
    background: rgba(255, 250, 240, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .education-card:hover,
[data-theme="light"] .writing-card:hover,
[data-theme="light"] .travel-card:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .timeline::before {
    background: rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .photo-item {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hobbies-tab-link {
    background: rgba(255, 250, 240, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-top {
    background: rgba(255, 250, 240, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    background: rgba(255, 250, 240, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--light-text);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: var(--gray-text);
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="light"] .image-frame {
    border-color: rgba(249, 115, 22, 0.2);
}

[data-theme="light"] .image-overlay {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(234, 88, 12, 0.1));
}

[data-theme="light"] .section-tag {
    color: var(--primary-color);
}

[data-theme="light"] .hero-name,
[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .sub-title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: var(--light-text);
}

[data-theme="light"] code,
[data-theme="light"] pre {
    background: rgba(15, 23, 42, 0.05);
    color: var(--light-text);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Smooth transitions for theme switching */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent transition on page load */
.preload * {
    transition: none !important;
}

/* ==================== Animated Background ==================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, -100px) rotate(120deg);
    }
    66% {
        transform: translate(-100px, 100px) rotate(240deg);
    }
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.dot {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(28px);
}

[data-theme="light"] .theme-toggle {
    background: rgba(255, 250, 240, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0.3;
}

.theme-toggle .sun-icon {
    opacity: 0.3;
}

.theme-toggle .moon-icon {
    opacity: 1;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.image-frame img {
    width: 100%;
    border-radius: 2rem;
    border: 3px solid rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-frame:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0.1;
    border-radius: 2rem;
    transition: opacity 0.3s ease;
}

.image-frame:hover .image-overlay {
    opacity: 0.2;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ==================== Section Styles ==================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== About Section ==================== */
.about-section {
    background: rgba(15, 23, 42, 0.5);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-text);
    font-size: 0.9rem;
}

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

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.skill-description {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ==================== Projects Section ==================== */
.projects-section {
    background: rgba(15, 23, 42, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1) rotate(360deg);
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.project-description {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==================== Experience Section ==================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 4px solid var(--darker-bg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.timeline-content {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.timeline-company {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-description {
    list-style: none;
    padding-left: 0;
}

.timeline-description li {
    color: var(--gray-text);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==================== Education Section ==================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.education-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.education-degree {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.education-school {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-location {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-year {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== Contact Section ==================== */
.contact-section {
    background: rgba(15, 23, 42, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--light-text);
}

.contact-details p {
    color: var(--gray-text);
}

.contact-socials {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.5);
}

.contact-form-wrapper {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
}

#formMsg {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* ==================== Footer ==================== */
/* ==================== Scroll to Top ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 235, 205, 0.98);
        border-left-color: rgba(0, 0, 0, 0.1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    .section {
        padding: 4rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hobbies-tab-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .photo-item {
        min-width: 300px;
        height: 400px;
    }

    .travel-grid {
        grid-template-columns: 1fr;
    }

    .writing-card-image {
        height: 200px;
    }
}

/* ==================== Certificates & Courses Section ==================== */
.subsection-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.certificates-content,
.courses-content {
    animation: fadeInUp 0.8s ease-out;
}

.certificate-link {
    margin-top: 1rem;
}

.certificate-link .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.certificate-link i {
    margin-right: 0.5rem;
}

/* ==================== Hobbies Section ==================== */
.hobbies-section {
    background: var(--darker-bg);
    position: relative;
}

.hobbies-tab-titles {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hobbies-tab-link {
    padding: 1rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hobbies-tab-link:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.hobbies-tab-link.active-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hobbies-tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.hobbies-tab-content.active-tab {
    display: block;
}

/* Writing Section */
.writing-slider-container {
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.writing-slider-container .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--gray-text);
    width: 100%;
    min-height: 400px;
}

.loading-state .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-state i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.error-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.article-meta i {
    color: var(--primary-color);
}

.writing-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.writing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.writing-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.writing-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.writing-card:hover .writing-card-img {
    transform: scale(1.1);
}

.writing-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.writing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.writing-description {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.writing-card .btn {
    align-self: flex-start;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.writing-slider-container .swiper-button-next,
.writing-slider-container .swiper-button-prev {
    color: var(--primary-color);
    background: var(--card-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.writing-slider-container .swiper-button-next:hover,
.writing-slider-container .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.writing-slider-container .swiper-button-next:after,
.writing-slider-container .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.writing-slider-container .swiper-pagination {
    bottom: 0 !important;
}

.writing-slider-container .swiper-pagination-bullet {
    background: var(--gray-text);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.writing-slider-container .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Photography Section */
.photography-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

#photo-slide {
    display: flex;
    gap: 1.5rem;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding: 2rem 0;
}

#photo-slide::-webkit-scrollbar {
    height: 8px;
}

#photo-slide::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#photo-slide::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.photo-item {
    min-width: 400px;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.photo-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.photo-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-buttons button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Travelling Section */
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.travel-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.travel-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.travel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.travel-card:hover img {
    transform: scale(1.1);
}

.travel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.travel-card:hover .travel-overlay {
    transform: translateY(0);
}

.travel-overlay h3 {
    color: var(--light-text);
    font-size: 1.5rem;
    font-weight: 600;
}

