:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary: #7209b7;
    --accent: #4cc9f0;
    --accent2: #f72585;
    --dark: #0c0f1d;
    --darker: #070916;
    --light: #f8f9fa;
    --card-bg: rgba(19, 22, 48, 0.8);
    --card-border: rgba(76, 201, 240, 0.3);
    --transition: all 0.4s ease;
    --gradient: linear-gradient(90deg, var(--accent), var(--accent2));
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    background: #000000;
    /* Prevent zooming on double-tap */
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent zooming on double-tap for iOS */
* {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Star Background Canvas */
#starBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

/* Matrix Background Canvas (disabled) */
#matrixBackground {
    display: none;
}

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

section {
    padding: 6rem 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(90deg, var(--accent), #b5179e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(76, 201, 240, 0.2);
}

h2 {
    font-size: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 10px;
}

h3 {
    font-size: 1.8rem;
    color: var(--accent);
}

p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--accent2);
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(114, 9, 183, 0.4);
}

.btn-primary:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover:after {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(12, 15, 29, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: var(--transition);
}

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

/* Modern Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(12, 15, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-nav-items {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-nav-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.5);
    transform: scale(1.1);
}

/* Profile Image */



@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

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

/* Hero section*/
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 11.5rem;
    overflow: hidden;
    text-align: left; /* Desktop/web view: text on the left */
}

/* Hero layout: text left, image right on desktop */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-btns{
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Profile image container & image */


.profile-img {
    width: 450px;
    height: 450px;
   
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: float 3s ease-in-out infinite;
}

/* Section Styling */
.section-title {
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Summary Section */
.summary-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 201, 240, 0.5);
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    position: relative;
    padding: 0rem;
}

.experience-content {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    height: 100%;
    overflow: hidden;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.experience-content:hover::before {
    transform: scaleX(1);
}

.experience-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 201, 240, 0.5);
}

.date {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

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

.experience-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.experience-content li:before {
    content: '▹';
    color: var(--accent);
    position: absolute;
    left: -1.5rem;
}

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

.education-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 201, 240, 0.5);
}

.degree-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(76, 201, 240, 0.5);
}

.gpa {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1rem;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

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

.skill-category {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.skill-category h3 i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(76, 201, 240, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(76, 201, 240, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(76, 201, 240, 0.2);
    transform: translateY(-2px);
}

/* IMPRESSIVE PROJECTS SECTION - COMPLETELY REDESIGNED */
.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    /* Match Education card glassmorphism */
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(15px);
    position: relative;
    /* Let content decide height for a more minimal card */
    height: auto;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.1) 0%, rgba(247, 37, 133, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 80px rgba(76, 201, 240, 0.3);
    border-color: rgba(76, 201, 240, 0.5);
}

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

.project-header {
    /* Reduced header height for a more compact card */
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, transparent 100%);
}

.project-icon {
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(247, 37, 133, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
}

.project-content {
    /* Slightly reduced padding to shrink overall card height */
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-title a {
    font-size: 1.2rem;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.project-title a:hover {
    transform: scale(1.2);
    color: var(--accent2);
}

.project-description {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.project-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(76, 201, 240, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(76, 201, 240, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.4);
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-demo {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-demo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 9, 183, 0.4);
}

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

.btn-details:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   Unified teal card styling (applied across sections)
   ========================================================================== */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card-emerald {
    background: rgba(100, 255, 218, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

.card-emerald:hover::before {
    left: 100%;
}

.card-emerald:hover {
    transform: translateY(-5px);
    border-color: #64ffda;
    box-shadow: 0 5px 30px rgba(100, 255, 218, 0.2);
}

.card-emerald h3 {
    color: #ccd6f6;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-emerald p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.section-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.section-tech-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Ensure project cards adopt unified styling */
.project-card.card-emerald {
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    height: auto;
    box-shadow: 0 5px 30px rgba(100, 255, 218, 0.2);
}

.project-card.card-emerald::before {
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
}

/* ==========================================================================
   Minimal Project Modal - Consistent with card-emerald styling
   ========================================================================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: rgba(100, 255, 218, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(100, 255, 218, 0.15);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(247, 37, 133, 0.1);
    color: #f72585;
    border: 1px solid rgba(247, 37, 133, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(247, 37, 133, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.modal-title {
    font-size: 1.8rem;
    color: #64ffda;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modal-badge {
    display: inline-block;
    background: rgba(100, 255, 218, 0.15);
    color: #64ffda;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-section {
    margin-bottom: 1.8rem;
}

.modal-section h3 {
    font-size: 1.2rem;
    color: #ccd6f6;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.modal-section h3 i {
    margin-right: 0.7rem;
    color: #64ffda;
    font-size: 1rem;
}

.modal-description {
    line-height: 1.7;
    color: #a0aec0;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.modal-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.05);
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.modal-features li:last-child {
    border-bottom: none;
}

.modal-features li::before {
    content: '▸';
    color: #64ffda;
    margin-right: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.modal-tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.modal-tech-item {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.6rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.modal-tech-item:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.modal-tech-icon {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
}


/* Contact Section - WITHOUT BACKGROUND */
#contact {
    background: transparent;
    padding: 5rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    margin: 2.5rem 0;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
    transition: var(--transition);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(114, 9, 183, 0.4);
}

.copyright {
    color: #94a3b8;
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(76, 201, 240, 0.1);
    width: 100%;
}

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

.fadeInUp {
    animation: fadeInUp 1s ease forwards;
}



/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }

    .hero-text {
        max-width: 100%;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }

    .skills-compact {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 2rem;
    }

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

@media (max-width: 768px) {
    .profile-img {
        width: 350px;
        height: 350px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(12, 15, 29, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

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

    .nav-links li {
        margin: 1.8rem 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        padding: 0.8rem 0;
    }

    /* Show mobile navigation */
    .mobile-nav {
        display: block;
    }

    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.2rem;
    }
    
    .summary-card {
        padding: 2rem;
    }
    
    .summary-card p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-content, .education-card {
        padding: 1.8rem;
    }
    
    .date {
        font-size: 0.95rem;
        padding: 0.3rem 1rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    /* Keep project cards minimal on mobile as well */
    .project-card {
        height: auto;
        min-height: 0;
    }

    .modal-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-footer {
        flex-direction: column;
    }
     .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }

}

@media (max-width: 576px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .profile-img {
        width: 350px;
        height: 350px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-header {
        height: 150px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.4rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
        margin: 0 0.8rem;
    }

    /* Mobile nav adjustments for small screens */
    .mobile-nav {
        bottom: 15px;
        padding: 12px 20px;
    }

    .mobile-nav-items {
        gap: 13px;
    }

    .mobile-nav-item {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.7rem;
    }

    .modal-tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.3rem;
    }
    
    .logo {
        font-size: 1.7rem;
    }
        
    .profile-img {
        width: 350px;
        height: 350px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
    }
     .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .profile-img {
        width: 350px;
        height: 350px;
    }

    .projects-showcase {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   FIX: Hide ugly scrollbar inside project modal
   ============================================ */

/* Chrome, Edge, Safari */
.modal-content::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Firefox */
.modal-content {
    scrollbar-width: none;
}

/* IE / old Edge */
.modal-content {
    -ms-overflow-style: none;
}
