/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Variables - Dark Mode (Default) */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #334155;
    --card-bg: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 0.5rem;
}

/* Light Mode Variables */
[data-theme="light"] {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Layout Components */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.nav-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-logo::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 ease;
}

.nav-logo:hover::before {
    left: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

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

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

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

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

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

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

/* Theme Toggle Button Enhanced */
.theme-toggle {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--border-color));
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 50px;
    width: 60px;
    height: 32px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--border-color));
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(2px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .theme-toggle::before {
    transform: translateX(30px);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle Icons Enhanced */
.theme-toggle .theme-icon {
    font-size: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    z-index: 1;
}

.theme-toggle .sun-icon {
    right: 8px;
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

.theme-toggle .moon-icon {
    left: 8px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
    color: #f59e0b;
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: translateY(-50%) rotate(-180deg);
}

/* Mobile Menu Enhanced */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(51, 65, 85, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.2);
}

[data-theme="light"] .hamburger {
    background: rgba(226, 232, 240, 0.2);
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.hamburger:hover {
    background: rgba(51, 65, 85, 0.2);
    transform: scale(1.05);
}

[data-theme="light"] .hamburger:hover {
    background: rgba(226, 232, 240, 0.3);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

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

.hamburger:hover span::before {
    left: 100%;
}

/* Navbar Glow Effect */
.nav-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--primary-color));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.header:hover .nav-container::before {
    opacity: 0.1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

[data-theme="light"] .hero::before {
    background: rgba(0, 0, 0, 0.7);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .profile-image {
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .profile-image:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(6, 182, 212, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

[data-theme="light"] .hero-title {
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

[data-theme="light"] .hero-subtitle {
    color: white;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

[data-theme="light"] .hero-description {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.6);
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0.25rem;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

.hero-social a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

[data-theme="light"] .hero-social a {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hero-social a:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

.btn-resume {
    background: linear-gradient(135deg, var(--accent-color), #0891b2);
    color: white;
    border: 2px solid transparent;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #0891b2, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.btn-resume i {
    margin-right: 0.5rem;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 2rem;
}

.about-profile-image {
    width: 280px;
    height: 350px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.about-profile-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

[data-theme="light"] .about-profile-image:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.education {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.education h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.education-item h4 {
    margin-bottom: 0.5rem;
}

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

/* Position the first 3 items on top row */
.skills-grid .skill-category:nth-child(1) {
    grid-column: 1 / 3;
}

.skills-grid .skill-category:nth-child(2) {
    grid-column: 3 / 5;
}

.skills-grid .skill-category:nth-child(3) {
    grid-column: 5 / 7;
}

/* Position the bottom 2 items centered */
.skills-grid .skill-category:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2;
}

.skills-grid .skill-category:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 2;
}

@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .skills-grid .skill-category:nth-child(1),
    .skills-grid .skill-category:nth-child(2),
    .skills-grid .skill-category:nth-child(3),
    .skills-grid .skill-category:nth-child(4),
    .skills-grid .skill-category:nth-child(5) {
        grid-column: unset;
        grid-row: unset;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .skills-grid .skill-category:nth-child(1),
    .skills-grid .skill-category:nth-child(2),
    .skills-grid .skill-category:nth-child(3),
    .skills-grid .skill-category:nth-child(4),
    .skills-grid .skill-category:nth-child(5) {
        grid-column: unset;
        grid-row: unset;
    }
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-category:hover h3 i {
    color: var(--accent-color);
    transform: scale(1.2);
}

[data-theme="light"] .skill-category:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-category h3 i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag i {
    font-size: 1.1em;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.skill-tag:hover i {
    color: white;
    transform: scale(1.1);
}

/* Specific icon animations for different technologies */
.skill-tag:hover .fa-python {
    color: #3776ab;
}

.skill-tag:hover .fa-php {
    color: #777bb4;
}

.skill-tag:hover .fa-laravel {
    color: #ff2d20;
}

.skill-tag:hover .fa-java {
    color: #f89820;
}

.skill-tag:hover .fa-js-square {
    color: #f7df1e;
}

.skill-tag:hover .fa-vuejs {
    color: #4fc08d;
}

.skill-tag:hover .fa-git-alt {
    color: #f05032;
}

.skill-tag:hover .fa-docker {
    color: #2496ed;
}

.skill-tag:hover .fa-google {
    color: #4285f4;
}

.skill-tag:hover .fa-database {
    color: #00758f;
}

.skill-tag:hover .fa-elephant {
    color: #336791;
}

/* Override white color on hover for specific tech icons */
.skill-tag:hover .fa-python,
.skill-tag:hover .fa-php,
.skill-tag:hover .fa-laravel,
.skill-tag:hover .fa-java,
.skill-tag:hover .fa-js-square,
.skill-tag:hover .fa-vuejs,
.skill-tag:hover .fa-git-alt,
.skill-tag:hover .fa-docker,
.skill-tag:hover .fa-google,
.skill-tag:hover .fa-database,
.skill-tag:hover .fa-elephant {
    color: white !important;
}

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

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: var(--shadow);
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

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

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.achievement-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-intro {
    text-align: left;
}

.contact-intro h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.contact-cta {
    margin-top: 2rem;
}

.contact-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.contact-btn i {
    margin-right: 0.5rem;
}

.contact-details {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-details h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--bg-secondary);
}

[data-theme="light"] .contact-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-color);
}

.contact-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-footer p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .contact-intro {
        text-align: center;
    }

    .contact-details {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-intro h3 {
        font-size: 1.75rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .contact-details {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 0.75rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
        border-right: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
        gap: 1.5rem;
    }

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

    .nav-menu li {
        width: auto;
    }

    .nav-link {
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        color: var(--text-primary);
        margin: 0;
        background: none;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        width: auto;
    }

    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .theme-toggle {
        margin: 1rem 0 0 0;
        order: -1;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-container {
        height: 70px;
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        position: static;
        justify-content: center;
    }

    .about-profile-image {
        width: 250px;
        height: 300px;
    }

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

    .timeline::before {
        left: 15px;
    }

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

    .timeline-marker {
        left: 6px;
    }

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

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

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

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-profile-image {
        width: 200px;
        height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }
}