@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #7C3AED;
    --primary-hover: #6D28D9;
    --secondary-color: #0F172A;
    --accent-color: #C084FC;
    --text-color: #475569;
    --heading-color: #1E293B;
    --bg-white: #ffffff;
    --bg-light: #F5F3FF;
    --border-color: #E2E8F0;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
}

/* Animations Library */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; }
}

.float-img { animation: float 6s ease-in-out infinite; }
.pulse-badge { animation: pulse-soft 3s ease-in-out infinite; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography Helpers */
.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #4C1D95;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #9333EA;
    transform: translateY(-2px);
}

/* Navbar */
header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
    animation: slideDown 0.4s ease-in-out;
}

header.sticky .navbar {
    padding: 0.75rem 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.025em;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--heading-color);
    font-size: 0.9375rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
    backdrop-filter: blur(10px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-left: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover i {
    transform: rotate(180deg);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
    color: var(--heading-color);
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.dropdown-menu a i:first-child {
    font-size: 1rem;
    width: 24px;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.25rem;
}

.dropdown-menu a:hover i:first-child {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.1);
}

/* Submenu / Second Level Dropdown */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    justify-content: space-between;
}

.has-submenu i {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 10px;
    width: 260px;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 15px 25px 60px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1200;
    pointer-events: none;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Submenu items specific tweak */
.submenu a {
    font-size: 0.875rem;
    padding: 0.75rem 0.85rem;
}

.submenu a i:first-child {
    font-size: 0.9rem;
    width: 20px;
}

.has-submenu:hover > a {
    background: var(--bg-light);
    color: var(--primary-color);
}

.has-submenu:hover > a i {
    transform: rotate(90deg);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Internship Section - Redesigned */
.internship-showcase {
    background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.internship-showcase::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.internship-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.internship-content {
    position: relative;
    z-index: 10;
}

.internship-visual {
    position: relative;
    z-index: 5;
}

.internship-list {
    margin: 2rem 0;
}

.internship-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    color: var(--heading-color);
}

.professional-bullets {
    margin: 2.5rem 0;
    padding: 0;
}

.professional-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.professional-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.professional-bullets li:hover {
    color: var(--heading-color);
    transform: translateX(5px);
    transition: var(--transition);
}

.visual-card {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(30, 27, 75, 0.25); /* Deeper shadow for premium feel */
    background: var(--white);
    padding: 12px;
}

.visual-card img {
    border-radius: calc(var(--radius-2xl) - 12px);
    width: 100%;
    transition: transform 0.5s ease;
}

.visual-card:hover img {
    transform: scale(1.03);
}

.visual-badge {
    position: absolute;
    bottom: 1.5rem;
    left: -1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    border-left: 4px solid var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.visual-badge i {
    color: #FBBF24;
    font-size: 1.5rem;
}

.visual-badge span {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--heading-color);
}

.visual-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-2xl);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none; /* Prevent blocking clicks */
}

/* Ensure buttons are siempre clickable */
.btn {
    position: relative;
    z-index: 15;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-10px) translateX(5px); }
}

@media (max-width: 992px) {
    .internship-box {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .internship-list li {
        justify-content: center;
    }

    .visual-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -1rem;
    }
    
    .visual-badge {
        animation: none;
    }
}

/* Hero Section */
.hero {
    padding: 6.5rem 0 6rem;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(192, 132, 252, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px; /* Increased size back to a more prominent scale */
    z-index: 2;
    margin-top: 40px; /* Space for pop-out head */
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
    z-index: 5;
    position: relative;
    transform: scale(1.1); /* Make it slightly larger than the wrapper to pop out */
}

.hero-blob {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.15;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blobMorph 10s ease-in-out infinite alternate;
    z-index: 1;
}

.hero-blob-2 {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 90%;
    height: 90%;
    border: 3px solid var(--primary-color);
    opacity: 0.2;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    animation: blobMorph 15s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; }
}

.hero-image:hover img {
    transform: translateY(-10px) scale(1.02);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.75rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Solutions Specific */
.solution-card {
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.solution-card:hover::before {
    opacity: 1;
}

/* Courses Specific */
.course-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-img img {
    transform: scale(1.1);
}

.course-info {
    padding: 2rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Features List */
.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-item i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

/* Portfolio Hero Redesign */
.portfolio-hero {
    padding: 12rem 0 6rem;
    background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s infinite alternate;
}

.portfolio-hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 12s infinite alternate-reverse;
}

.portfolio-hero-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.portfolio-hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 8rem 0 4rem;
    }
    .portfolio-hero h1 {
        font-size: 2.75rem;
    }
}

/* Portfolio Section Redesign */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(30, 27, 75, 0.15);
}

.portfolio-img-box {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-box img {
    transform: scale(1.1);
}

.portfolio-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.portfolio-link i {
    transition: transform 0.3s ease;
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--border-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Chatbot Button */
.chatbot-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary-color);
}

.chatbot-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.chatbot-btn:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* About Page Specific */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    transition: 0.4s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Allow scrolling for long lists */
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--heading-color);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-color);
    font-family: 'Poppins', sans-serif;
}

/* Mobile Dropdown */
.mobile-dropdown-menu {
    display: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    list-style: none;
    border-left: 2px solid var(--primary-color);
}

.mobile-dropdown-menu li {
    margin-bottom: 1rem;
}

.mobile-dropdown-menu a {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Submenu */
.mobile-submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 1px dashed var(--border-color);
}

.mobile-has-submenu.active .mobile-submenu {
    display: block;
}

.mobile-has-submenu.active .mobile-submenu-toggle i {
    transform: rotate(180deg);
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--text-color) !important;
    padding: 0.5rem 0 !important;
}

.mobile-submenu a {
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    opacity: 0.8;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-footer {
    margin-top: auto;
    text-align: center;
}

/* Responsive Design - Consolidated */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }
    .nav-links { display: none; }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: var(--bg-light);
        border-radius: 8px;
        font-size: 1.15rem;
        order: 2;
    }
    .nav-actions { gap: 0.65rem; align-items: center; }
    .nav-actions .btn-primary { 
        padding: 0.55rem 1rem; 
        font-size: 0.8rem;
    }
    .hero-grid, .about-grid, .internship-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-content { margin: 0 auto; max-width: 100%; }
    .hero-btns { justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
    .hero { padding: 7rem 0 3.5rem; }
    .hero-image { order: -1; margin-bottom: 2rem; }
    .hero-image-wrapper { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .hero h1 { font-size: 1.85rem; line-height: 1.2; }
    .section-title { font-size: 1.7rem; }
    .card-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .hero-btns .btn { width: 100%; margin: 0 !important; }
    .logo { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    
    /* Disable reveal on mobile for instant visibility */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .nav-actions .btn-primary { display: none; }
    .hero h1 { font-size: 1.65rem; }
    .hero p { font-size: 0.95rem; }
    .container { padding: 0 1rem; }
}

/* Base Animations Logic */
.reveal, .stagger-reveal > * {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal.active, 
.stagger-reveal.active > *,
.reveal.active .stagger-reveal > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger Delays */
.stagger-reveal.active > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.active > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.active > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.active > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.active > *:nth-child(5) { transition-delay: 0.5s; }

/* Fallbacks & Mobile Optimization */
.no-js .reveal, .no-js .stagger-reveal > * { opacity: 1 !important; transform: none !important; }

@media (max-width: 1024px) {
    /* Disable on mobile for instant data visibility */
    .reveal, .stagger-reveal > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }
}