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

:root {
    --primary: #002347;
    /* Deep Navy */
    --primary-light: #003366;
    --secondary: #D4AF37;
    /* Metallic Gold */
    --secondary-light: #F1D592;
    --accent: #FFD700;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #888;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #001a33;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.section-padding {
    padding: 100px 0;
}

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

.flex {
    display: flex;
}

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

.justify-between {
    justify-content: space-between;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 35, 71, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
}

.header-inner {
    height: 80px;
}

.logo-text h2 {
    color: var(--white);
    transition: var(--transition);
}

.logo-text span {
    color: var(--secondary);
    transition: var(--transition);
}

header.scrolled .logo-text h2 {
    color: var(--primary) !important;
}

header.scrolled .logo-text span {
    color: var(--text-light) !important;
}

header.scrolled .mobile-menu-toggle {
    color: var(--primary) !important;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Logo Styling */
.logo-title {
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
}

.logo-subtitle {
    color: var(--secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
}

header.scrolled .logo-title {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white);
}

header.scrolled .nav-links a {
    color: var(--primary);
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 35, 71, 0.85) 0%, rgba(0, 35, 71, 0.5) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btns .btn {
    min-width: 180px;
    padding: 15px 35px;
}

/* --- Sections --- */
.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* --- Why Choose Us --- */
.why-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.why-content {
    flex: 1;
    min-width: 300px;
}

.why-image {
    flex: 1;
    min-width: 300px;
    margin-left: 50px;
}

/* --- Card Layout --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--secondary);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* --- Announcements Ticker --- */
.ticker-wrap {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.latest-badge {
    background: var(--secondary);
    color: var(--primary);
    padding: 5px 15px;
    font-weight: 700;
    margin-right: 20px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    position: relative;
}

.ticker-display {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    white-space: nowrap;
    display: inline-block;
    animation: ticker 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    margin-bottom: 25px;
    color: var(--secondary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    color: var(--white) !important;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0 !important;
}

.social-icons a:hover {
    background: var(--secondary) !important;
    color: var(--primary) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border-color: var(--secondary) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Responsive --- */

/* Tablet & Small Laptop */
@media (max-width: 1024px) {
    .nav-links {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .section-padding {
        padding: 70px 0;
    }

    .container {
        padding: 0 20px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .why-container {
        flex-direction: column;
    }

    .why-image {
        margin-left: 0;
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

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

    .recruiter-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 80px;
        background-attachment: scroll;
    }

    .hero-content h1 {
        line-height: 1.1;
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        margin-left: 0 !important;
    }

    .section-padding {
        padding: 50px 0;
    }

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

    .section-title {
        margin-bottom: 30px;
    }

    .card {
        padding: 25px;
    }

    .card-icon {
        font-size: 2.2rem;
    }

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

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 50px 0 20px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .map-container {
        height: 280px;
        margin-top: 30px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: -30px;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }

    .ticker-container {
        font-size: 0.85rem;
    }

    .latest-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Achievement Timeline */
    .achievement-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }

    .timeline-item::after {
        left: 19px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }

    .inner-page-header {
        padding: 100px 0 40px !important;
    }

    .inner-page-header h1 {
        font-size: 2rem !important;
    }

    .inner-page-header p {
        font-size: 1rem !important;
    }

    /* Filter bar scroll on mobile */
    .filter-bar {
        padding-bottom: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Placements */
    .placements-header {
        padding: 120px 0 60px;
    }

    .recruiter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .recruiter-logo {
        font-size: 0.9rem;
    }

    /* About Page */
    .about-hero {
        padding: 120px 0 60px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

    .section-padding {
        padding: 40px 0;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card {
        padding: 20px;
    }

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

    .stat-card h2 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }

    .map-container {
        height: 220px;
    }

    footer {
        padding: 40px 0 15px;
    }

    .footer-grid {
        gap: 25px;
    }

    .mobile-nav {
        width: 85%;
    }

    .header-inner {
        height: 65px;
    }

    .logo img {
        height: 40px;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }

    .inner-page-header {
        padding: 90px 0 30px !important;
    }

    .inner-page-header h1 {
        font-size: 1.6rem !important;
    }

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

    .achievement-timeline {
        padding: 10px 0;
    }

    .timeline-item {
        padding-left: 55px;
        padding-right: 15px;
    }

    .timeline-content {
        padding: 18px;
    }

    .cta-submit {
        padding: 30px 20px;
    }

    .ticker-wrap {
        font-size: 0.8rem;
    }
}

/* --- Skeleton Loading --- */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: var(--radius-sm);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

.skeleton-text {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-card {
    height: 300px;
    width: 100%;
    padding: 30px;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* --- Consolidated Header & Nav Styles --- */
.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: var(--radius-sm);
    padding: 10px 0;
    top: 100%;
    left: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.dropdown-content a {
    color: var(--primary) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary) !important;
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

header.scrolled .logo-text h2 {
    color: var(--primary);
}

header.scrolled .mobile-menu-toggle {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-header img {
    height: 40px;
}

#mobile-close {
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

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

    .mobile-menu-toggle {
        display: block !important;
    }
}