/* Enhanced CSS with Advanced Animations - Dark Mode */

:root {
    --primary: #f8f9fa;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #000000;
    --success: #27ae60;
    --warning: #f39c12;
    --gray: #95a5a6;
    --transition: all 0.4s cubic-bezier(0.17, 0.67, 0.88, 1.01);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
    --text-primary: #ffffff; /* White text for black sections */
    --text-secondary: #cccccc;
    --card-bg: rgba(30, 30, 30, 0.8);
    --section-bg: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.8);
}

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

section {
    padding: 120px 0;
    background-color: var(--section-bg);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
    opacity: 0.9;
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-weight: 500; /* Slightly thicker for readability on video */
}

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

a:hover {
    color: var(--primary);
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    color: black;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #2980b9, var(--secondary));
}

.btn:hover::before {
    left: 100%;
}

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

.arrow-icon {
    margin-left: 8px;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.8em;
}

.btn:hover .arrow-icon {
    transform: rotate(-15deg);
}

.envelope-icon {
    margin-right: 8px;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline:hover .envelope-icon {
    transform: rotate(15deg);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Hero Section Styles */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent; /* Make transparent */
    padding-top: 80px; /* Space for the floating navbar */
    padding-bottom: 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(52, 152, 219, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(231, 76, 60, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    padding: 0 40px;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
    animation: fadeInUp 1s ease-out;
    padding-top: 0;
    transform: translateY(-60px); /* Move text upwards */
    color: #ffffff; /* Hero content is white on video */
}

.hero-content p {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    font-weight: 500;
}

.hero h1 {
    font-size: 3.8rem;
    margin: 5px 0 10px 0;
    color: #ffffff; /* White text on video */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    animation: slideInLeft 1s ease-out;
    white-space: nowrap;
}

.hero h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 5px 0 15px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    animation: slideInRight 1s ease-out 0.2s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero h3 {
    font-size: 3.5rem;
    color: #ffffff;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    animation: slideInLeft 1s ease-out 0.1s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
}

.main-buttons {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.contact-and-social {
    display: flex;
    gap: 25px;
    align-items: center;
}

.social-button {
    display: flex;
    align-items: center;
    background: rgba(26, 26, 26, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 50px;
    padding: 3px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    width: 130px; /* Reduced width */
    margin: 0;
    min-height: 42px; /* Reduced height */
}

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

.social-button:hover::before {
    left: 0;
}


.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    text-decoration: none;
    flex: 1; /* Make icons take equal space */
}

.social-icon.linkedin {
    margin-right: 5px;
}

.social-icon.github {
    margin-left: 5px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.social-button:hover::before {
    left: 100%;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.social-icon.linkedin {
    margin-right: 10px;
}

.social-icon.github {
    margin-left: 10px;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
}

.divider-line {
    height: 30px;
    width: 2px;
    background: var(--secondary);
    margin: 0 5px;
}

.navbar {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

/* Mobile Nav removed from here - moved to media query for sidebar effect */

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px; /* Reduced gap */
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 12px; /* Reduced padding */
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    display: inline-block;
    font-size: 0.9rem; /* Reduced font size */
}

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

.scramble-link {
    position: relative;
    overflow: hidden;
}

.fixed-typing {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    width: 100%;
    text-align: center;
    min-height: 2.8rem;
    line-height: 2.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 3000; /* Ensure it stays above sidebar */
}

/* Hide mobile-specific nav elements by default (Desktop) */
.mobile-nav-list,
.sidebar-overlay {
    display: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* Hamburger Animation */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}


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

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

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

/* About Section Styles */
.about {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%); /* Soft Sage */
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-top: 10px; /* Move up more */
    margin-bottom: 40px; /* Reduce space from the top */
    position: relative;
}

.about-title {
    font-size: 3rem; /* Bigger text */
    text-align: center; /* Centered */
    margin-bottom: 50px; /* Space below */
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.about-left {
    flex: 1;
    max-width: 500px;
}

.about-right {
    flex: 1;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-right {
    flex: 1;
    max-width: 500px;
}

.arsenal-title {
    font-size: 2rem;
    margin-bottom: 35px;
    color: var(--text-primary);
    position: relative;
}

.arsenal-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

/* Skills Carousel Section */
.skills-carousel-section {
    width: 100%;
    margin-top: 80px;
    text-align: center;
}

.skills-carousel-section .arsenal-title {
    font-size: 2.2rem;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.skills-carousel {
    width: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(100, 150, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 20px;
    padding: 40px 0;
    position: relative;
    box-shadow: 
        0 0 60px rgba(100, 150, 255, 0.2),
        inset 0 0 60px rgba(100, 150, 255, 0.1),
        0 0 100px rgba(100, 150, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skills-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.skills-carousel::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(100, 150, 255, 0.3), transparent, rgba(100, 150, 255, 0.3));
    border-radius: 20px;
    pointer-events: none;
    opacity: 0.5;
    animation: portalGlow 3s ease-in-out infinite;
}

@keyframes portalGlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 40px rgba(100, 150, 255, 0.4);
    }
}

.skills-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
    width: max-content;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    font-size: 3rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--secondary));
}

.skill-item:hover {
    transform: translateY(-10px);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Smaller gap */
}

.skill-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px; /* Smaller padding */
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 70px; /* Equal height */
    display: flex;
    align-items: center;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.skill-icon {
    font-size: 1.8rem; /* Smaller icon */
    color: var(--secondary);
    transition: var(--transition);
    margin-right: 12px; /* Space between icon and text */
    min-width: 30px; /* Consistent icon width */
}

.skill-card:hover .skill-icon {
    transform: scale(1.3); /* Zoom effect on hover */
    color: var(--text-primary); /* Keep icon visible */
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* White glow */
    border: 1px solid white; /* White border */
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem; /* Smaller text */
    transition: var(--transition);
    flex: 1; /* Take remaining space */
}

/* Projects Section Styles */
.projects {
    background: linear-gradient(135deg, #ffffff 0%, #F5F3FF 100%); /* Lavender Mist */
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1000px; /* Adjust as needed to contain and center the grid */
    margin: 0 auto; /* Center the grid itself */
    justify-items: center; /* Center grid items within their cells */
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1; /* Make the card square */
}

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

.project-img {
    height: 180px; /* Reduced height */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    opacity: 0;
    transition: var(--transition);
}

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

.project-content {
    padding: 25px; /* Reduced padding */
}

.services {
    background: linear-gradient(135deg, #ffffff 0%, #FFF7ED 100%); /* Champagne/Sand */
    position: relative;
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 15px; /* Reduced margin */
    color: var(--text-primary);
    position: relative;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.project-links-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.project-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link-icon:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.desktop-projects {
    display: grid;
}

.mobile-projects {
    display: none;
}

/* Education Section Styles */
.education {
    background: linear-gradient(135deg, #ffffff 0%, #F0F9FF 100%); /* Ice Blue */
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.education-content {
    display: flex;
    gap: 50px;
}

.education-left {
    flex: 1;
}

.certifications-right {
    flex: 1;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
    align-self: flex-start;
}

.education-title {
    font-size: 2.2rem; /* Bigger size */
    margin-bottom: 40px; /* Space below title */
    color: var(--text-primary);
    text-align: left; /* Left aligned */
}

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--secondary);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary);
}

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

.education-period {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.education-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.certifications-title {
    font-size: 2.2rem; /* Bigger size */
    margin-bottom: 30px; /* Space below title */
    color: var(--text-primary);
    text-align: left; /* Left aligned */
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three certificates in one line */
    gap: 20px;
}

.certificate-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0; /* Remove padding to allow image to fill the card */
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    aspect-ratio: 1/1; /* Maintain square shape */
    position: relative;
    overflow: hidden;
}

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

.certificate-placeholder {
    width: 70px;
    height: 70px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px dashed rgba(52, 152, 219, 0.3);
    flex-shrink: 0;
}

.certificate-image-placeholder {
    width: 100%;
    height: 100%; /* Fill entire card */
    background: #111; /* Solid background for 4K feel */
    border: none;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-overlay-glass {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 35%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cert-overlay-glass span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.certificate-card:hover .cert-overlay-glass,
.certificate-card.mobile-hover .cert-overlay-glass {
    bottom: 0;
}

.certificate-link-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(142, 68, 173, 0.1));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--secondary);
}

.certificate-link-placeholder i {
    font-size: 2.5rem;
}

.certificate-link-placeholder p {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

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

.certificate-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)); /* Overlay for text clarity */
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    z-index: 10;
    transition: var(--transition);
}

.certificate-card:hover {
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.4); /* Glow effect */
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.certificate-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-icon {
    font-size: 3rem; /* Larger icon for placeholders */
    color: var(--secondary);
    opacity: 0.5;
}

.modal-cert-info {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.modal-cert-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px; /* Centered on the line */
    height: 100%;
    width: 2px; /* Thinner line */
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 8px; /* Centered on the line */
    left: 2px; /* Centered on the line */
    width: 20px; /* Smaller circle */
    height: 20px; /* Smaller circle */
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 2px var(--secondary);
    z-index: 2;
    transform: translateX(-50%); /* Center the circle on the line */
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px; /* Reduced margin */
    font-size: 0.85rem; /* Smaller text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.3rem; /* Smaller title */
    margin-bottom: 10px;
    color: var(--text-primary);
}

.achievements {
    margin-top: 50px; /* Reduced margin */
}

.achievements-title {
    font-size: 1.8rem; /* Bigger size */
    margin-bottom: 25px; /* Space below title */
    color: var(--text-primary);
    text-align: left; /* Left aligned */
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for better alignment */
    gap: 15px; /* Reduced gap */
}

.achievement-card {
    background: rgba(52, 152, 219, 0.1); /* Subtle background */
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid var(--secondary);
}

.achievement-card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.certification-item {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 3px solid var(--accent);
}

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

.certification-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.certification-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--secondary);
}

.certification-date, .certification-issuer {
    background: rgba(52, 152, 219, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
}

/* Contact Section Styles */
.contact {
    background: linear-gradient(135deg, #ffffff 0%, #FDF2F2 100%); /* Muted Rose */
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(52, 152, 219, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    margin-bottom: 35px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-detail:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-right: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-detail:hover .contact-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 45px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #ffffff;
    color: #000000;
}

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

/* Footer Styles */
footer {
    background: transparent;
    color: var(--text-primary);
    padding: 60px 0 30px;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 260px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    color: var(--text-primary);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.footer-column p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-5px) rotate(5deg);
    color: white;
}

/* New Centered Footer Layout */
.footer-layout-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
    padding: 40px 0;
}

.footer-about-section {
    max-width: 800px;
}

.footer-about-section h3, 
.footer-links-section h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-about-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-social {
    justify-content: center;
    gap: 30px;
}

.footer-social .social-link {
    font-size: 1.8rem;
}

.footer-links-section {
    width: 100%;
}

.footer-services-section {
    margin-top: -20px; /* Pull closer to Quick Links */
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-nav-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-brand-section {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-name {
    font-size: 6rem; /* Even larger */
    font-weight: 900;
    margin: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: -3px;
    text-shadow: 0 0 30px rgba(52, 152, 219, 0.4);
}

.footer-typing {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.typing-accent {
    color: var(--secondary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-name {
        font-size: 3.5rem; /* Larger on mobile */
        letter-spacing: -1px;
    }
    .footer-typing {
        font-size: 1.4rem;
    }
    .footer-about-section p {
        font-size: 1.1rem;
    }
    .footer-nav-links {
        gap: 15px;
    }
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
    color: white;
    font-size: 1.2rem;
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-large-text h2 {
        font-size: 2.2rem;
    }

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
/* Comprehensive Responsive Design */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .about-content,
    .education-content,
    .contact-content {
        gap: 30px;
    }
}

/* Tablets and Large Mobiles */
@media (max-width: 992px) {
    section {
        padding: 80px 0;
    }

    .about-content,
    .contact-content,
    .education-content {
        flex-direction: column;
    }

    .about-left, .about-right,
    .education-left, .certifications-right,
    .contact-info, .contact-form {
        width: 100%;
    }

    .about-right {
        margin-top: 40px;
    }

    .skills-carousel-section .arsenal-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .skills-carousel {
        padding: 35px 0;
    }

    .skills-track {
        gap: 25px;
        padding: 0 25px;
    }

    .skill-item {
        min-width: 110px;
        font-size: 0.85rem;
    }

    .skill-item i {
        font-size: 2.2rem;
    }

    .hero-overlay {
        flex-direction: column;
        padding: 0 20px;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 90%;
    }

    .hero-buttons {
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
        white-space: normal;
    }

    .fixed-typing {
        font-size: 1.8rem;
        min-height: 2.3rem;
        line-height: 2.3rem;
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0 60px;
    }

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

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

    .hero h2 {
        font-size: 1.5rem;
    }

    .main-buttons, .contact-and-social {
        flex-direction: row; /* Buttons 2 in one line */
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    .btn, .social-button {
        width: calc(50% - 10px); /* Fit 2 in one line */
        min-width: 140px;
        text-align: center;
        justify-content: center;
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .navbar {
        width: 95%;
        max-width: 95%;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 20px;
        border-radius: 40px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    }

    .nav-list {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 2400; /* Just below sidebar */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

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

    .mobile-nav-list {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 300px; /* Wider sidebar */
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 2500;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        transition: right 0.6s cubic-bezier(0.65, 0, 0.35, 1);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-list.active {
        right: 0;
    }

    .mobile-nav-list li {
        margin: 15px 0;
    }

    .mobile-nav-list .nav-link {
        font-size: 1.5rem;
        padding: 10px 30px;
    }

    .desktop-projects {
        display: none;
    }

    .mobile-projects {
        display: block;
    }

    .project-card {
        aspect-ratio: auto;
        min-height: 400px;
    }

    .project-img {
        height: 200px;
    }

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

    .skills-carousel {
        padding: 30px 0;
    }

    .skills-track {
        gap: 20px;
        padding: 0 20px;
    }

    .skill-item {
        min-width: 100px;
        font-size: 0.8rem;
    }

    .skill-item i {
        font-size: 2rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 350px;
        margin: 0 auto;
    }

    .certificate-card {
        padding: 0;
        aspect-ratio: 1/1;
    }

    .certificate-name {
        font-size: 1.1rem;
        padding: 20px 15px;
    }

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

    .about-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .card {
        padding: 25px;
    }

    .contact-detail {
        flex-direction: row;
        text-align: left;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h3 {
        font-size: 1.5rem;
    }

    .fixed-typing {
        font-size: 1.4rem;
        min-height: 1.8rem;
        line-height: 1.8rem;
        display: block;
        width: 100%;
        text-align: center;
    }

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

    .education-card {
        padding: 15px;
    }

    .education-card h3 {
        font-size: 1.1rem;
    }

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

    .footer-large-text h2 {
        font-size: 1.8rem;
    }

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

    .contact-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Final Polish for Mobile */
@media (max-width: 480px) {
    .hero-buttons {
        width: 100%;
        gap: 10px;
        align-items: center; /* Center align items */
        justify-content: center; /* Center justify items */
    }

    .main-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: center; /* Center the buttons */
        justify-content: center; /* Center justify the buttons */
    }

    .contact-and-social {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        justify-content: center;
        align-items: center; /* Center align items */
    }

    .social-button {
        width: 100%;
        height: 50px;
    }

    .btn, .btn-outline {
        width: 100%; /* Make buttons full width on mobile */
        max-width: 280px; /* But limit the max width */
        margin: 0 auto; /* Center the buttons */
    }

    .fixed-typing {
        font-size: 1.2rem;
        min-height: 1.6rem;
        line-height: 1.6rem;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .hero-content {
        text-align: center; /* Center all content in hero on mobile */
    }
}

/* Certificate Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contextual-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3000 !important;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 85vh; /* Ensure space for close button on small screens */
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
    object-fit: contain;
    /* Ensure consistent modal size for all certificates */
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 75vh;
}

/* Force landscape orientation for consistent modal viewing */
.modal-image.certificate-landscape {
    max-height: 75vh;
    max-width: 85vw;
    object-fit: scale-down;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary);
    transform: scale(1.1) rotate(90deg);
}

@keyframes modalPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contact Form Success Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.success-modal-content {
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 20px;
    padding: 50px 40px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: successModalPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes successModalPop {
    0% {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.success-modal-icon {
    font-size: 5rem;
    color: #27ae60;
    margin-bottom: 20px;
    animation: checkmarkPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.success-modal-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-modal-content p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.success-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

/* Form Error Message */
.form-error-message {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-size: 0.9rem;
    animation: shakeError 0.5s ease;
}

.form-error-message i {
    font-size: 1.1rem;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form Error Message */
.form-error-message {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    font-size: 0.9rem;
    animation: shakeError 0.5s ease;
}

.form-error-message i {
    font-size: 1.1rem;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-content {
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile-specific modal positioning */
@media (max-width: 768px) {
    .modal-overlay {
        position: fixed;
        z-index: 9999;
    }

    .contextual-modal {
        position: fixed !important;
        z-index: 9999 !important;
    }

    .modal-content {
        position: relative;
        z-index: 10000;
    }

    .modal-image {
        max-height: 70vh;
        max-width: 85vw;
    }

    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }

    /* Success Modal Mobile */
    .success-modal-content {
        padding: 40px 25px 30px;
        width: 85%;
    }

    .success-modal-icon {
        font-size: 4rem;
    }

    .success-modal-content h3 {
        font-size: 1.5rem;
    }

    .success-modal-content p {
        font-size: 1rem;
    }

    .success-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Instagram Card Styles */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 1.2s ease-out;
}

.ig-card {
    width: 380px;
    background: #000000; /* Deep black for 4K */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.ig-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}

.ig-card-header {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    overflow: hidden;
}

.ig-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #000;
}

.ig-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    flex: 1;
}

.ig-dots {
    color: #8e8e8e;
    font-size: 1.2rem;
    cursor: pointer;
}

/* IG Card Music Info Section - Instagram Style */
.ig-music-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(26, 26, 26, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.music-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}

.music-marquee .marquee-text {
    display: inline-block;
    font-size: 0.75rem;
    color: #ffffff;
    white-space: nowrap;
    animation: musicMarquee 8s linear infinite;
    padding-left: 100%;
}

@keyframes musicMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.music-icon {
    font-size: 0.9rem;
    color: #1db954;
    animation: musicPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes musicPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.ig-card-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #000;
}

.ig-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.floating-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 5rem;
    opacity: 0;
    animation: heartPop 0.8s ease-out;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.floating-heart-ig {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 6rem;
    animation: realHeartPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 10;
    text-shadow: 0 0 30px rgba(0,0,0,0.5);
    pointer-events: none;
}

@keyframes realHeartPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
    30% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
    45% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

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

.ig-card:hover .ig-card-img img {
    transform: scale(1.05);
}

.ig-card-footer {
    padding: 12px 15px;
    background: rgba(26, 26, 26, 0.4);
}

.ig-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.ig-actions i {
    cursor: pointer;
    transition: var(--transition);
}

.ig-actions i:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.ig-actions i.liked {
    color: #ed4956;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.left-actions {
    display: flex;
    gap: 15px;
}

.ig-likes {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: white;
}

.ig-caption {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #efefef;
    text-align: left;
}

.ig-caption strong {
    margin-right: 5px;
}

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

@media (max-width: 992px) {
    .hero-right {
        justify-content: center;
        margin-top: 30px; /* Reduced top margin to pull it up */
        width: 100%;
        display: flex;
        perspective: 1200px;
    }
    
    .ig-card {
        width: 95%; 
        max-width: 450px;
        transform: scale(1.15) translateY(-20px); /* Move UPWARD as requested */
    }

    .hero-content {
        transform: translateY(-40px); /* Adjust mobile text position too */
    }
}

@media (max-width: 768px) {
    .ig-card {
        width: 380px;
        max-width: 98%;
        transform: scale(1.2) translateY(-40px); /* Move further UP on small screens */
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 cards in one line */
        gap: 15px;
    }

    /* Cards will be smaller due to 2 columns in grid above */

    .contact-form button[type="submit"] {
        display: block;
        margin: 0 auto; /* Center button */
        float: none;
        width: auto;
        min-width: 200px;
    }

    .magic-mouse {
        animation: mouseTravelMobile 2s cubic-bezier(0.45, 0, 0.55, 1) forwards !important;
    }
}

/* Share Modal Styles */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    background: #262626;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

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

.share-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #363636;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.share-modal-header h3 {
    font-size: 1.1rem;
    color: white;
    margin: 0;
}

.share-modal-close {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.share-modal-body {
    padding: 25px 20px;
}

.link-container {
    display: flex;
    background: #121212;
    border-radius: 8px;
    padding: 12px 15px;
    align-items: center;
    gap: 10px;
}

.website-link {
    color: var(--secondary);
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition);
}

.copy-btn.success {
    color: #2ecc71;
}

@media (max-width: 480px) {
    .share-modal-content {
        width: 85%;
    }
}

/* Instagram Story Modal Styles */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    animation: fadeIn 0.3s ease;
}

.story-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 85vh;
    background: #121212;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.story-progress-bar {
    position: absolute;
    top: 15px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.story-progress-fill {
    width: 0;
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: storyProgress 5s linear forwards;
}

@keyframes storyProgress {
    from { width: 0; }
    to { width: 100%; }
}

.story-header {
    padding: 35px 20px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.story-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid white;
}

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

.story-username {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.story-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.story-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.story-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.story-quote {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-family: 'Segoe UI', serif;
}

@media (max-width: 480px) {
    .story-modal-content {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }
}

/* Magic Mouse Animation Styles */
.magic-mouse {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    color: var(--secondary);
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    animation: mouseTravel 2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes mouseTravel {
    0% {
        bottom: -50px;
        right: 10%;
        transform: rotate(-15deg) scale(0.8);
        opacity: 0;
    }
    30% {
        bottom: 20%;
        right: 15%;
        opacity: 1;
    }
    85% {
        top: 132px; /* Precision hit on the avatar */
        right: 325px; /* Precision hit on the avatar */
        transform: rotate(-5deg) scale(1.1);
    }
    100% {
        top: 132px;
        right: 325px;
        transform: rotate(0deg) scale(0.7); /* Scale down for click feel */
        color: var(--accent); /* Change color for click feel */
    }
}

/* Connection Notice Card (Glassmorphism) */
.connection-notice-card {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 30px;
    background: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

.glass-card-content {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.glass-icon {
    font-size: 2rem;
    color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.glass-text {
    flex: 1;
    min-width: 300px;
}

.glass-text p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.btn-magic-scroll {
    background: linear-gradient(135deg, var(--secondary), #8e44ad);
    color: white !important;
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.btn-magic-scroll:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(142, 68, 173, 0.3);
}

/* Section Separation Lines */
.projects, .education, .services, .contact {
    position: relative;
}

.projects::after,
.education::after,
.services::after,
.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Refined Section Colors - Midnight Mode */
.about { background: linear-gradient(180deg, transparent 0%, #0a0a0a 100%); }
.projects { background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%); }
.education { background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%); }
.services { background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%); }
.contact { background: linear-gradient(180deg, #111111 0%, #000000 100%); }

@keyframes mouseTravelMobile {
    0% {
        bottom: -50px;
        left: 50%;
        transform: translate(-50%, 0) rotate(-15deg) scale(0.8);
        opacity: 0;
    }
    30% {
        bottom: 100px;
        left: 50%;
        opacity: 1;
    }
    85% {
        top: 510px; /* Adjusted precision for moved card */
        left: 55px; 
        transform: translate(0, 0) rotate(-5deg) scale(1.1);
    }
    100% {
        top: 510px;
        left: 55px;
        transform: translate(0, 0) rotate(0deg) scale(0.7);
        color: var(--accent);
    }
}

@media (max-width: 768px) {
    .glass-card-content {
        justify-content: center;
        text-align: center;
    }
    .glass-text {
        min-width: 100%;
    }
}

/* Global Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    filter: blur(5px);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Hover effect on project cards */
.project-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.3) !important;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}
.next-project-btn {
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    border: none;
    color: white !important;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.3);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.next-project-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(41, 128, 185, 0.4);
    background: linear-gradient(135deg, #2980b9, var(--secondary));
}

.next-project-btn i {
    transition: transform 0.3s ease;
}

.next-project-btn:hover i {
    transform: translateX(5px);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 100px;
    z-index: 5000;
}

.chatbot-widget {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12c2e9, #c471ed, #f64f59);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseChat 2s infinite;
}

.chatbot-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 280px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px 22px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.chatbot-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-popup p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 500;
}

@keyframes pulseChat {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 15px 40px rgba(196, 113, 237, 0.5); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
}

/* Arrow indicator for certificate popup - Mobile only */
.chatbot-arrow-indicator {
    display: none; /* Hidden by default on desktop */
}

@keyframes bounceArrow {
    0%, 100% { 
        transform: translateX(50%) translateY(0); 
    }
    50% { 
        transform: translateX(50%) translateY(-10px); 
    }
}

@media (max-width: 768px) {
    .chatbot-container {
        bottom: 20px;
        right: 80px;
    }
    .chatbot-widget {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .chatbot-popup {
        width: 200px;
        bottom: 70px;
    }
    .chatbot-arrow-indicator {
        display: flex; /* Show only on mobile */
        position: absolute;
        top: -45px;
        right: 50%;
        transform: translateX(50%);
        background: linear-gradient(135deg, #12c2e9, #c471ed, #f64f59);
        color: white;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        animation: bounceArrow 1.5s infinite;
        z-index: 5001;
    }
}

.next-project-btn:hover i {
    transform: translateX(5px);
}

/* Like Notification Styles */
.like-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    animation: slideInNotif 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.like-notification-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.like-notification-content i {
    color: #ed4956;
    font-size: 1.2rem;
    animation: pulseHeart 1.5s infinite;
}

.like-notification-content p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes slideInNotif {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulseHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .like-notification {
        bottom: 90px;
        left: 20px;
        right: 20px;
    }
    .like-notification-content {
        justify-content: center;
    }
}
@media (min-width: 1024px) {
    /* Footer Laptop Layout */
    .footer-layout-centered {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
        gap: 40px;
        padding: 60px 0;
    }

    .footer-about-section {
        flex: 1.5;
        text-align: left;
        max-width: unset;
    }

    .footer-about-section h3, 
    .footer-links-section h3 {
        font-size: 1.8rem;
        text-align: left;
    }

    .footer-links-section {
        flex: 1;
        width: auto;
    }

    .footer-services-section {
        flex: 1;
        margin-top: 0;
    }

    .footer-nav-links {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 12px;
    }

    .footer-social {
        justify-content: flex-start;
        gap: 20px;
    }

    .footer-brand-section {
        display: none; /* User specified 3 columns: About, Quick Links, Services */
    }

    /* Cert Modal Position for Laptop */
    .education {
        min-height: 600px; /* Ensure space for modal */
    }
}
