:root {
    --bg-color: #ffffff;
    --bg-secondary: #f9f7f7;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;

    /* UIDE - ASU Palette */
    --uide-maroon: #862633;
    --uide-gold: #FFC627;

    --accent-gray: #e9ecef;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --border-color: #eaeaea;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--uide-maroon);
}

.highlight {
    color: var(--uide-gold);
}

.gradient-text {
    background: linear-gradient(135deg, var(--uide-maroon), #a93242);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--uide-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--uide-maroon);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--uide-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Buttons */
.btn-primary {
    background: var(--uide-maroon);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 2px solid var(--uide-maroon);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background: #6d1f2a;
    border-color: #6d1f2a;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 10px 20px rgba(134, 38, 51, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--uide-maroon);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--uide-maroon);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background: var(--uide-maroon);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered again for impact */
    text-align: center;
    padding: 0 5%;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f0f0 100%);
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 1000px;
    margin-top: -50px;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Scroll Indication */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--uide-maroon);
    border-radius: 13px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--uide-maroon);
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* "Excellence" Section */
.excellence-section {
    padding: 8rem 5%;
    background: white;
}

.excellence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title-left {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--uide-gold);
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--uide-maroon);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--uide-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.abstract-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #fdfbfb 0%, #f4f0f0 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.abstract-image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--uide-maroon);
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
    opacity: 0.05;
}

/* Sections */
.section {
    padding: 7rem 5%;
}

.section.alt-bg {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--uide-maroon);
    transition: width 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--uide-maroon);
}

.filter-btn.active::after {
    width: 100%;
}

/* Cards Grid (Subjects) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.glass {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.glass::top {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--uide-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

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

.glass:hover::top {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--uide-maroon);
}

/* Projects Grid (Gallery) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

.project-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
}

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

.project-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.project-cat {
    background: white;
    color: var(--uide-maroon);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

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

.link-details {
    color: var(--uide-maroon);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(134, 38, 51, 0.2);
    padding-bottom: 3px;
    transition: all 0.3s;
}

.link-details:hover {
    border-bottom-color: var(--uide-maroon);
}

/* Footer */
footer {
    background: var(--uide-maroon);
    color: white;
    padding: 6rem 5% 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.7;
    font-weight: 500;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--uide-gold);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
.hamburger {
    display: none;
}

@media (max-width: 900px) {
    .excellence-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--uide-maroon);
        position: absolute;
        left: 0;
        border-radius: 2px;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        top: 18px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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