/* Base Styles & CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-skill: #ffffffa1;
    --bg-skill-hvr: #f0f0f0;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --terminal-shadow: 0 8px 25px rgba(0, 0, 0, 0);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-primary: #000000;
    --bg-secondary: #1c1c1c;
    --bg-skill: #4b5563;
    --bg-skill-hvr: #4b55637c;
    --shadow: 0 4px 6px -1px rgba(151, 151, 151, 0.1);
    --terminal-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 30px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

body::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.nav-logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    list-style: none;
}

.nav-links a {
    margin-left: 3rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* Right side container for theme toggle and mobile menu */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active span:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 3%;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .nav-links a {
        margin: 1.5rem 0;
        margin-left: 0;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--bg-secondary);
        color: var(--primary-color);
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Theme toggle adjustments */
    .theme-toggle {
        width: 30px;
        height: 30px;
        border-radius: 20px;
    }

    .theme-toggle i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 2%;
    }

    .nav-logo a {
        font-size: 1.2rem;
    }

    .nav-links {
        width: 280px;
    }

    .nav-links a {
        font-size: 1.1rem;
        margin: 1.2rem 0;
    }

    .theme-toggle {
        width: 28px;
        height: 28px;
        border-radius: 18px;
    }

    .theme-toggle i {
        font-size: 12px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(2px, 2px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        transform: rotate(-45deg) translate(2px, -2px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    margin-top: 4rem;
}

.hero-content {
    flex: 2;
}

.hero-image {
    position: relative;
    min-height: 400px;
    margin-right: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.terminal-anim {
    position: relative;
    margin-right: 40px;
    margin-top: -50px;
    width: 580px;
    height: 320px;
}

.terminal-window {
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: var(--terminal-shadow);
    border: 1px solid #333;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', monospace;
}

.terminal-header {
    height: 30px;
    background: linear-gradient(180deg, #3c3c3c 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid #1a1a1a;
}

.terminal-controls {
    display: flex;
    align-items: center;
}

.terminal-title {
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27ca3f; }

.terminal-body {
    padding: 16px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', monospace;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.4;
    background: #0e0e0e;
    height: calc(100% - 30px);
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 8px;
    min-height: 20px;
}

.prompt {
    color: #a929b8;
    font-weight: 600;
    margin-right: 8px;
}

.command {
    color: #61afef;
    font-weight: 500;
}

.output-text {
    color: #abb2bf;
    margin-left: 20px;
}

.output-text.success {
    color: #98c379;
}

.cursor {
    color: #61afef;
    animation: blink 1s infinite;
    font-weight: 600;
}

.final-cursor {
    animation: blink 1s infinite;
}

@keyframes fadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh; /* Reduce height for tablets */
        flex-direction: column; /* Stack content and image vertically */
        padding: 0 3%;
        margin-top: 2rem;
    }

    .hero-content {
        flex: none; /* Remove flex grow for stacking */
        width: 100%;
        margin-bottom: 20px; /* Space below content */
        margin-top: 70px;
    }

    .hero-image {
        min-height: 300px; /* Reduce height for tablets */
        margin-right: 0; /* Remove horizontal margin */
        width: 100%;
        margin-bottom: 50px;
    }

    .terminal-anim {
        margin-right: 0;
        margin-top: 0; /* Reset negative margin */
        width: 425px; /* Reduce width */
        height: 280px; /* Reduce height proportionally */
    }

    .terminal-body {
        padding: 12px;
        font-size: 12px; /* Slightly smaller text */
    }

    .terminal-title {
        font-size: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh; /* Further reduce height for phones */
        padding: 0 2%;
        margin-top: 1.5rem;
    }

    .hero-content {
        flex: none; /* Remove flex grow for stacking */
        width: 100%;
        margin-top: 50px;
        margin-bottom: 20px; /* Space below content */
    }
    
    .hero-image {
        min-height: 200px; /* Even smaller height */
    }

    .terminal-anim {
        width: 340px; /* Further reduce width */
        height: 220px; /* Proportional height */
    }

    .terminal-body {
        text-align: left;
        padding: 10px;
        font-size: 11px; /* Smaller text for phones */
        line-height: 1.3;
    }

    .terminal-title {
        font-size: 9px;
    }

    .dot {
        width: 9px;
        height: 9px;
    }

    .terminal-line {
        margin-bottom: 6px;
    }
    
}

/* Responsive
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 0 2%;
    }
    .hero-image {
        margin-right: 0;
        margin-top: 20px;
        min-height: 300px;
    }
    .terminal-anim {
        width: 365px;
        height: 200px;
    }
} */

.typewriter {
    font-size: 2rem; /* Default for desktop (around 32px) */
    color: var(--primary-color);
    margin: 1rem 0;
    overflow-wrap: break-word; /* Ensures long text wraps if needed */
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.5rem; /* Reduce to around 24px for tablets */
        margin: 0.75rem 0; /* Slightly reduce vertical margin */
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 1.2rem; /* Further reduce to around 19px for phones */
        margin: 0.5rem 0; /* Even less margin on smaller screens */
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem; /* Explicitly set for consistency */
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn.secondary:hover {
    color: white;
}

.btn.secondary:hover::before {
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .btn {
        padding: 0.6rem 1.2rem; /* Reduce padding for tablets */
        border-radius: 4px; /* Slightly smaller radius */
        font-size: 0.9rem; /* Slightly smaller text */
        margin-top: 25px;
    }

    .btn.primary:hover {
        transform: translateY(-1px); /* Reduce lift on hover */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); /* Softer shadow */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.5rem 1rem; /* Further reduce padding for phones */
        border-radius: 3px; /* Even smaller radius */
        font-size: 0.85rem; /* Smaller text for phones */
        margin-top: 15px;
    }

    .btn.primary:hover {
        transform: translateY(-0.5px); /* Minimal lift */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    }

    .btn.secondary::before {
        transition: width 0.3s ease; /* Keep animation smooth */
    }
}


/* Interests Section */
.interests {
    margin-top: 2rem;
}

.interests h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.interests h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.interests ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.interests li {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interests li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.interests li:hover {
    border-color: var(--primary-color);
    background: var(--bg-skill-hvr);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.interests li:hover::before {
    left: 100%;
}

.interests li:nth-child(1)::after {
    content: '💻';
    margin-left: 0.5rem;
}

.interests li:nth-child(2)::after {
    content: '🤖';
    margin-left: 0.5rem;
}

.interests li:nth-child(3)::after {
    content: '☁️';
    margin-left: 0.5rem;
}

/* Responsive design for interests */
@media (max-width: 768px) {
    .interests {
        margin-top: 1.5rem;
    }
    
    .interests h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .interests ul {
        gap: 0.6rem;
    }
    
    .interests li {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .interests ul {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .interests li {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Projects Section */
/* .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    padding: 2rem 0;
}

.project-card {
    margin: 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    justify-content: space-evenly;
}

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

.project-info {
    padding: 1.5rem;
} */


.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(350px, 1fr));
    gap: 30px;
    padding: 2rem 0;
    margin: 30px;
}

.project-card {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: bolder;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.tech-stack span {
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-stack i {
    margin-right: 10px;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap; /* Added for responsiveness */
}

.btn.proj i {
    margin-right: 10px;
}

.btn.proj {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn.proj:first-child {
    background: var(--bg-skill-hvr);
    color: var(--text-primary);
}

.btn.proj:first-child:hover {
    transform: translateY(-2px);
    color: var(--secondary-color);
}

.btn.proj:last-child {
    background: var(--bg-skill-hvr);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn.proj:last-child:hover {
    transform: translateY(-2px);
    color: rgb(0, 150, 0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        margin: 15px;
        padding: 1rem 0;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-grid {
        margin: 10px;
        margin-bottom: 50px;
    }
    .project-info h3 {
        font-size: 1.2rem;
    }
    .project-info p {
        font-size: 0.9rem;
    }
    .tech-stack span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .btn.proj {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .tech-stack i {
        margin-right: 5px;
    }
    .btn.proj i {
        margin-right: 5px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

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

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
} */

.skills {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 2rem; /* Fixed typo: was '2rem 0', now consistent */
}

.skills-container {
    padding: 2rem 0;
    height: auto; /* Remove fixed height, let content determine height */
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 40px; /* Increased for better spacing */
}

/* First row with 3 categories side by side */
.skill-row-1 {
    height: auto; /* Remove fixed height */
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skill-row-1 .skill-category {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
}

/* Second row with 2 categories side by side */
.skill-row-2 {
    height: auto; /* Remove fixed height */
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skill-row-2 .skill-category {
    flex-basis: calc(50% - 10px);
    min-width: 0; /* Allows flex items to shrink below content size */
}

/* Third row with 3 categories side by side */
.skill-row-3 {
    height: auto; /* Remove fixed height */
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skill-row-3 .skill-category {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below content size */
}

/* Fourth row with 2 categories side by side */
.skill-row-4 {
    height: auto; /* Remove fixed height */
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.skill-row-4 .skill-category {
    flex-basis: calc(50% - 10px);
    min-width: 0; /* Allows flex items to shrink below content size */
}

.skill-category {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.skill-category h3:first-child {
    margin-top: 0;
}

.skill-items {
    color: var(--text-primary);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-skill-hvr);
    padding: 8px 12px;
    border-radius: 50px;
    transition: background-color 0.2s;
}

.skill-item:hover {
    background-color: var(--bg-skill);
}

.skill-item i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .skills {
        padding: 10px 0; /* Reduce padding for mobile */
        margin-bottom: 1.5rem;
    }

    .skills-container {
        padding: 1rem 0;
        gap: 30px; /* Reduce gap between rows */
        margin-bottom: 30px; /* Ensure space for projects section */
    }

    .skill-row-1, .skill-row-2, .skill-row-3, .skill-row-4 {
        flex-direction: column; /* Stack categories vertically */
        gap: 20px; /* Reduce gap between categories */
    }

    .skill-row-1 .skill-category, .skill-row-2 .skill-category, .skill-row-3 .skill-category, .skill-row-4 .skill-category {
        flex-basis: 100%; /* Full width on mobile */
        min-width: 0;
    }

    .skill-category {
        padding: 15px; /* Reduce padding for mobile */
    }

    .skill-category h3 {
        font-size: 1.2rem; /* Smaller headings */
        margin-bottom: 10px;
    }

    .skill-items {
        gap: 8px; /* Smaller gap between skill items */
    }

    .skill-item {
        padding: 6px 10px; /* Smaller skill items */
    }

    .skill-item span {
        font-size: 0.8rem; /* Smaller text */
    }
}

@media (max-width: 480px) {
    .skills {
        padding: 5px 0;
        margin-bottom: 1rem;
    }

    .skills-container {
        gap: 30px;
        margin-bottom: 20px;
    }

    .skill-row-1, .skill-row-2, .skill-row-3, .skill-row-4 {
        gap: 30px;
    }

    .skill-category {
        padding: 10px;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-items {
        gap: 6px;
    }

    .skill-item {
        padding: 5px 8px;
    }

    .skill-item span {
        font-size: 0.75rem;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .skill-row-1, .skill-row-2, .skill-row-3, .skill-row-4 {
      flex-direction: column;
    }
    
    .skill-row-2 .skill-category {
     flex-basis: 100%;
   }
}



/* Contact Form */
.contact-container {
    display: grid;
    margin-top: 100px;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item {
    margin-top: 40px;
    margin-bottom: -40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    width: 100%; /* Full width */
    max-width: 300px; /* Set a max width */
}

.contact-item i {
    font-size: 24px;
    color: #007bff; /* Adjust icon color */
    margin-bottom: 10px;
}

.contact-item h3 {
    margin: 5px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.contact-item p {
    font-size: 16px;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--shadow);
    border-radius: 5px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.submit .btn.primary {
    background-color: var(--primary-color);
    border: none;
    transition: var(--transition);
}

/* Footer */
.footer {
    text-align: center;
    background: var(--bg-secondary);
    padding: 3rem 5%;
    margin-top: 4rem;
    transition: var(--transition);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Uncommented for clarity */
    gap: 2rem;
    text-align: center;
}

.footer-content p{
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr; /* Single column on tablets */
        margin-top: 60px; /* Reduce top margin */
        gap: 1.5rem; /* Smaller gap */
    }

    .contact-info {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .contact-item {
        margin-top: 20px;
        margin-bottom: -20px;
        padding: 10px;
        max-width: 250px; /* Slightly smaller max width */
    }

    .contact-item i {
        font-size: 20px; /* Smaller icon */
    }

    .contact-item h3 {
        font-size: 16px; /* Smaller heading */
    }

    .contact-item p {
        font-size: 14px; /* Smaller text */
    }

    .form-group {
        margin-bottom: 1rem; /* Reduce margin */
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem; /* Reduce padding */
        border-radius: 4px; /* Slightly smaller radius */
    }

    /* Footer Section */
    .footer {
        padding: 2rem 3%; /* Reduce padding */
        margin-top: 2rem; /* Reduce top margin */
    }

    .footer-content {
        grid-template-columns: 1fr; /* Single column on tablets */
        gap: 1.5rem; /* Smaller gap */
    }
}

@media (max-width: 480px) {
    /* Contact Section */
    .contact-container {
        margin-top: 40px;
        gap: 1rem;
    }

    .contact-info {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .contact-item {
        margin-top: 15px;
        margin-bottom: -15px;
        padding: 8px;
        max-width: 200px; /* Further reduce max width */
    }

    .contact-item i {
        font-size: 18px;
    }

    .contact-item h3 {
        font-size: 14px;
    }

    .contact-item p {
        font-size: 12px;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
        border-radius: 3px;
    }

    /* Footer Section */
    .footer {
        padding: 1.5rem 2%;
        margin-top: 1.5rem;
    }

    .footer-content {
        gap: 1rem;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    /* .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    } */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Enhanced About/Profile Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.about-image {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: 15px;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image:hover img {
    transform: translate(8px, 8px);
}

.about-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    top: 15px;
    right: -15px;
    border-radius: 15px;
    z-index: 0;
    opacity: 0.1;
}

.about-text {
    padding: 2rem;
}

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

.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}


.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item span {
    font-weight: 500;
}

/* Media Query Updates */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .about-text {
        padding: 1rem 0;
    }
}

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

/* Enhanced Social Links Section */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    /* margin: 3rem 0; */
    padding: 1.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;  /* Increased size */
    height: 4.5rem; /* Increased size */
    border-radius: 15px; /* Slightly rounded corners */
    background: var(--bg-secondary);
    color: var(--primary-color);
    font-size: 2rem; /* Larger icons */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.2);
}

/* Add labels below social icons */
.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
}

.social-links a:hover::after {
    opacity: 1;
    bottom: -15px;
}

/* Media Queries for Social Links */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .social-links a {
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .social-links a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
}

/* Dark Mode Toggle Button */
.theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    width: 35px; /* Fixed width */
    height: 35px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    touch-action: manipulation; /* Improve touch responsiveness */
}

/* Hover and Focus States */
.theme-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.theme-toggle:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2); /* Add subtle focus ring for accessibility */
}

/* Icon Styling */
.theme-toggle i {
    font-size: 16px; /* Increase icon size */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        width: 30px; /* Reduce width for tablets */
        height: 30px; /* Reduce height */
        border-radius: 20px; /* Slightly smaller radius */
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Softer shadow */
    }

    .theme-toggle i {
        font-size: 14px; /* Slightly smaller icon */
    }

    .theme-toggle:hover {
        transform: scale(1.05); /* Less aggressive scale on hover */
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 25px; /* Further reduce width for phones */
        height: 25px; /* Further reduce height */
        border-radius: 15px; /* Even smaller radius */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    }

    .theme-toggle i {
        font-size: 12px; /* Smaller icon for phones */
    }

    .theme-toggle:hover {
        transform: scale(1.02); /* Minimal scale for touch devices */
    }
}