@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

:root {
    /* Updated theme with reduced brightness */
    --bg-color: #0a0e1a;
    --second-bg-color: #0f1419;
    --card-bg: #1a1f2e;
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
    --primary-color: #e67e22;        /* Reduced from #ff8c42 */
    --secondary-color: #d68910;      /* Reduced from #ffa726 */
    --accent-color: #f39c12;         /* Reduced from #ffb74d */
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --border-color: rgba(230, 126, 34, 0.2);     /* Adjusted for new primary */
    --shadow-color: rgba(230, 126, 34, 0.1);     /* Adjusted for new primary */
    --gradient-primary: linear-gradient(135deg, #e67e22, #d68910);
    --gradient-secondary: linear-gradient(135deg, #f39c12, #e67e22);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

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

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

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
}

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

/* Updated Header - Reduced Height */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%; /* Reduced from 2rem */
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 70px; /* Fixed height */
}

.logo {
    font-size: 2.4rem; /* Reduced from 2.8rem */
    font-weight: 700;
    color: var(--text-color);
    cursor: default;
}

.logo-bracket {
    color: var(--primary-color);
}

/* Improved Navigation */
.navbar {
    display: flex;
    align-items: center;
    gap: 1rem; /* Added proper spacing */
}

.navbar a {
    font-size: 1.4rem; /* Reduced from 1.6rem */
    color: var(--text-secondary);
    padding: 1rem 1.5rem; /* Added padding for better spacing */
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0; /* Remove margin, use gap instead */
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
    background: rgba(255, 140, 66, 0.1);
    transform: translateY(-2px);
}

.navbar a i {
    font-size: 1.6rem;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--primary-color);
    display: none;
    cursor: pointer;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.heading {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.heading span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.heading-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Updated section padding to account for smaller header */
section {
    padding-top: 9rem; /* Reduced from 10rem */
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12rem 9% 2rem; /* Adjusted for home section */
    gap: 6rem;
}

.home-content {
    flex: 1;
}

.text-animation h3 {
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.text-animation h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.text-animation h3:nth-of-type(2) {
    margin-bottom: 3rem;
}

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

.home-description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: var(--gradient-primary);
    color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4);
}

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

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

.social-media {
    display: flex;
    gap: 2rem;
}

.social-media a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-size: 2.4rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(255, 140, 66, 0.3);
}

.img-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 140, 66, 0.1));
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 10rem 0;
    background: var(--second-bg-color);
}

.about-content {
    margin-bottom: 6rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.1);
}

.stat-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-info h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-info p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs */
.about-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    cursor: pointer;
    font-size: 1.6rem;
    padding: 1.5rem 3rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    border-radius: 10px 10px 0 0;
}

.tab:hover,
.tab.active {
    color: var(--primary-color);
    background: var(--card-bg);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.tab-content {
    display: none;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.tab-content.active {	
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Education Timeline */
.education-timeline {
    position: relative;
    padding-left: 3rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-primary);
}

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

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

.education-card {
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.1);
}

.education-header {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.university-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.edu-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-info h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.education-info h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.specialization {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.education-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.education-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

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

/* Experience Timeline Styles */
.experience-timeline {
    position: relative;
    padding-left: 3rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--gradient-primary);
}

.experience-card {
    background: var(--second-bg-color);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.1);
}

.experience-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-info h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-info h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.experience-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.experience-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

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

.experience-description p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.experience-description h5 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.experience-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.experience-description li {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
}

.experience-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-tech .tech-tag {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .experience-meta {
        justify-content: center;
    }
}


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

.cert-card {
    background: var(--second-bg-color);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.1);
}

.cert-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.cert-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.cert-card p {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

/* Tech Stack Section - Centered and Improved */
.tech-stack {
    min-height: 100vh;
    padding: 10rem 0;
    background: var(--bg-color);
    display: flex;
    align-items: center;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    justify-items: center; /* Center the cards */
    max-width: 1400px;
    margin: 0 auto;
}

.tech-category {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    text-align: center; /* Center content */
}

.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.15);
    border-color: var(--primary-color);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the header */
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    font-size: 3rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.tech-item {
    background: var(--second-bg-color);
    padding: 2rem 1rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tech-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(255, 140, 66, 0.2);
    background: linear-gradient(135deg, var(--card-bg), var(--second-bg-color));
}

.tech-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-item span {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Projects Section */
.project {
    min-height: 100vh;
    padding: 10rem 0;
    background: var(--second-bg-color);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 140, 66, 0.15);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 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-links {
    display: flex;
    gap: 2rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.project-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-info {
    padding: 3rem;
}

.project-category {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.project-info p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

.tech-tag {
    background: var(--second-bg-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.add-project {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    background: transparent;
}

.add-project-content {
    text-align: center;
    color: var(--text-secondary);
}

.add-project-content i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.add-project-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    padding: 10rem 0;
    background: var(--bg-color);
    display: flex;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

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

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

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.1);
}

.contact-icon {
    width: 6rem;
    height: 6rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--bg-color);
}

.contact-details h4 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 3rem;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

.contact-btn i {
    font-size: 2rem;
}

/* Footer */
.footer {
    background: var(--second-bg-color);
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-text p {
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.footer-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--gradient-primary);
    color: var(--bg-color);
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.footer-top a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 4rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-content h3 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.modal-content h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.modal-content p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
}

.modal-content li {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.modal-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    html { font-size: 55%; }
    .container { padding: 0 3rem; }
}

@media (max-width: 991px) {
    .header { padding: 1rem 3%; }
    section { padding: 8rem 3% 2rem; }
    .home { flex-direction: column; gap: 4rem; padding-top: 10rem; }
    .contact-content { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    #menu-icon { display: block; }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(10, 14, 26, 0.95);
            backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        display: none;
        flex-direction: column;
    }
    
    .navbar.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    .navbar a {
        display: flex;
        font-size: 1.8rem;
        margin: 1rem 0;
        padding: 1.5rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .navbar a:hover {
        background: rgba(255, 140, 66, 0.2);
        transform: translateX(10px);
    }
    
    .btn-group { 
        flex-direction: column; 
        gap: 1.5rem;
    }
    
    .stats-container { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .tabs { 
        flex-direction: column; 
        gap: 1rem;
    }
    
    .tab {
        justify-content: center;
        padding: 1.5rem 2rem;
        border-radius: 10px;
    }
    
    .tech-categories { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .tech-category {
        max-width: none;
    }
    
    .projects-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem;
    }
    
    .education-header { 
        flex-direction: column; 
        text-align: center; 
        gap: 1.5rem;
    }
    
    .education-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .modal-content { 
        width: 95%; 
        margin: 10% auto; 
        padding: 2rem; 
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 450px) {
    html { 
        font-size: 50%; 
    }
    
    .header {
        padding: 1rem 5%;
    }
    
    .home {
        padding: 10rem 5% 2rem;
        text-align: center;
    }
    
    .home-content { 
        text-align: center; 
    }
    
    .img-container { 
        width: 280px; 
        height: 280px; 
    }
    
    .text-animation h1 {
        font-size: 4.5rem;
    }
    
    .text-animation h3 {
        font-size: 2.8rem;
    }
    
    .home-description {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 1.2rem 2rem;
        font-size: 1.4rem;
    }
    
    .social-media a {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }
    
    .heading {
        font-size: 3.5rem;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    .about-text p {
        font-size: 1.6rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-icon {
        font-size: 3rem;
    }
    
    .stat-info h3 {
        font-size: 2.5rem;
    }
    
    .tab-content {
        padding: 2rem;
    }
    
    .education-timeline {
        padding-left: 2rem;
    }
    
    .education-card {
        padding: 2rem;
    }
    
    .university-logo {
        width: 60px;
        height: 60px;
    }
    
    .education-info h3 {
        font-size: 1.8rem;
    }
    
    .education-info h4 {
        font-size: 1.6rem;
    }
    
    .tech-category {
        padding: 2rem 1.5rem;
    }
    
    .category-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-header i {
        font-size: 2.5rem;
    }
    
    .category-header h3 {
        font-size: 1.8rem;
    }
    
    .tech-items {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem 0.5rem;
        min-height: 100px;
    }
    
    .tech-item i {
        font-size: 2.5rem;
    }
    
    .tech-item span {
        font-size: 1.1rem;
    }
    
    .project-info {
        padding: 2rem;
    }
    
    .project-info h3 {
        font-size: 2rem;
    }
    
    .project-info p {
        font-size: 1.4rem;
    }
    
    .project-tech {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.4rem 1rem;
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-icon {
        width: 5rem;
        height: 5rem;
        font-size: 2rem;
    }
    
    .contact-details h4 {
        font-size: 1.6rem;
    }
    
    .contact-details p {
        font-size: 1.4rem;
    }
    
    .contact-btn {
        padding: 1.5rem 2rem;
        font-size: 1.4rem;
    }
    
    .contact-btn i {
        font-size: 1.6rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
    }
    
    .modal-content h3 {
        font-size: 2.2rem;
    }
    
    .modal-content h4 {
        font-size: 1.6rem;
    }
    
    .modal-content p,
    .modal-content li {
        font-size: 1.4rem;
    }
    
    .close {
        font-size: 2.5rem;
    }
}

/* Additional animations and effects */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tech-item:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.navbar a:focus,
.btn:focus,
.social-media a:focus,
.contact-btn:focus,
.project-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 140, 66, 0.5);
        --shadow-color: rgba(255, 140, 66, 0.3);
    }
}

/* Print styles */
@media print {
    .header,
    .animated-bg,
    .social-media,
    .btn-group,
    .project-overlay,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .heading,
    .project-info h3,
    .education-info h3 {
        color: black !important;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--second-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection styles */
::selection {
    background: var(--primary-color);
    color: var(--bg-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Utility classes */
.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

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

.slide-up {
    animation: slideUp 0.6s ease-in-out;
}

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

/* Enhanced hover effects */
.enhanced-hover {
    position: relative;
    overflow: hidden;
}

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

.enhanced-hover:hover::before {
    left: 100%;
}

