* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

 :root {
    --primary: #CC3634;
    --primary-light: #e65a58;
    --primary-dark: #a12a28;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-bottom: 20px;
    /* Reduced padding since button is now floating */
}


/* Titles/Headings */

@font-face {
    font-family: 'Gotham Bold';
    src: url('../fonts/Gotham-Bold.woff2') format('woff2'), url('../fonts/Gotham-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gotham Bold', sans-serif;
}


/* Paragraphs */

p {
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
}


/* Navbar Styles - Desktop */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 54, 52, 0.3);
}


/* Mobile Fixed Apply Button */

.mobile-apply-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: none;
    text-align: center;
    animation: slideUp 0.5s ease-out;
    transition: all 0.3s ease;
    opacity: 1;
}

.mobile-apply-btn .btn-content {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    min-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(204, 54, 52, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.mobile-apply-btn .btn-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-apply-btn .btn-content:hover::before {
    left: 100%;
}

.mobile-apply-btn .btn-content:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(204, 54, 52, 0.6);
    text-decoration: none;
}


/* Hide button when form is in view */

.mobile-apply-btn.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.mobile-apply-btn .arrow-gif {
    display: inline-block;
    margin-right: 10px;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes arrowBounce {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(3px) rotate(-5deg);
    }
    50% {
        transform: translateX(6px) rotate(0deg);
    }
    75% {
        transform: translateX(3px) rotate(5deg);
    }
}


/* Hero Features List */

.hero-features {
    margin-top: 30px;
    margin-bottom: 35px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: white;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-feature-icon {
    color: #4CAF50;
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: checkPulse 2s ease-in-out infinite;
}

.hero-feature-text {
    font-weight: 500;
    line-height: 1.4;
}

@keyframes checkPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}


/* Hero Section - Desktop */

.hero-section {
    background: linear-gradient(135deg, rgb(0 0 0 / 83%), rgb(204 54 52 / 90%)), url(../images/acity-informatic-admission.jpg?w=1920&h=1080&fit=crop) center / cover;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    /*min-height: 100vh;*/
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgb(0 0 0 / 55%) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(204, 54, 52, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero-title::before {
    content: 'INFORMATICS';
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.1);
    text-shadow: none;
    transform: translate(3px, 3px);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 600px;
}

.btn-hero {
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
}

.btn-primary-hero:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 54, 52, 0.4);
}

.btn-outline-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline-hero:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}


/* Info Form */

.info-form-card {
    background: #ffff;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.info-form-card h4 {
    color: #CC3634;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.info-form-card p {
    margin-bottom: 25px;
    text-align: center;
}

.form-placeholder {}


/* Mobile Specific Styles */

@media (max-width: 991px) {
    body {
        padding-bottom: 20px;
        /* Reduced padding for floating button */
    }
    /* Show mobile apply button */
    .mobile-apply-btn {
        display: block;
    }
    /* Hide desktop apply button in navbar */
    .navbar .btn-apply {
        display: none;
    }
    /* Mobile navbar - only logo */
    .navbar {
        padding: 15px 0;
    }
    .navbar-brand img {
        height: 40px;
    }
    /* Mobile Hero Section */
    .hero-section {
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(204, 54, 52, 0.6)), url('../images/informatics-mob.jpg?w=800&h=1200&fit=crop');
        background-size: cover;
        background-position: 75% center;
        /* This will show the person */
        background-repeat: no-repeat;
        padding: 100px 0 60px;
        min-height: 70vh;
    }
    /* Hide hero buttons on mobile */
    .hero-buttons {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .info-form-card {
        padding: 25px;
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-features {
        margin-top: 20px;
        margin-bottom: 25px;
    }
    .hero-feature-item {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .navbar-brand img {
        height: 35px;
    }
    .mobile-apply-btn .btn-content {
        padding: 14px 25px;
        font-size: 0.95rem;
        min-width: 220px;
    }
}


/* Desktop only - show regular navbar button */

@media (min-width: 992px) {
    .mobile-apply-btn {
        display: none;
    }
}


/* Why Informatics Section */

.why-informatics {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(247, 247, 247, 0.8), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?w=1920&h=1080&fit=crop') center/cover;
    position: relative;
    overflow: hidden;
}

.why-informatics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(204, 54, 52, 0.1) 100%);
    z-index: 1;
}

.why-content {
    position: relative;
    z-index: 2;
    color: #555e;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    position: relative;
}

.why-text {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 600px;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.why-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 54, 52, 0.8), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.highlight-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.highlight-stat i {
    font-size: 1.5rem;
    margin-right: 12px;
    opacity: 0.9;
}

.visual-element {
    position: relative;
    z-index: 2;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    color: white;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 50%;
    left: 80%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}


/* Programs Section */

.programs-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(204, 54, 52, 0.02) 0%, rgba(102, 126, 234, 0.02) 100%);
}

.programs-content {
    position: relative;
    z-index: 2;
}

.programs-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

.programs-title::after {
    content: '';
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.program-card {
    background: white;
    border-radius: 25px;
    padding: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.program-card::before {
    display: none;
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.program-card:hover .program-image {
    transform: scale(1.1);
}

.image-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.program-card:hover .image-gradient {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 30px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.program-card:hover .card-header::before {
    right: -30%;
}

.program-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    z-index: 2;
}

.card-body {
    padding: 40px 30px;
    position: relative;
    z-index: 2;
    background: white;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.program-features li:hover {
    color: var(--primary);
    padding-left: 35px;
}

.learn-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.learn-more-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 54, 52, 0.3);
}


/* Specialty Cards */

.ai-card .card-header {
    background: linear-gradient(rgb(204 54 52 / 86%), rgb(204 54 52 / 77%)), url("../images/BSc-Artificial-Intelligence.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-card .card-header {
    background: linear-gradient(rgb(204 54 52 / 86%), rgb(204 54 52 / 77%)), url("../images/BSc-Computer-Science.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.it-card .card-header {
    background: linear-gradient(rgb(204 54 52 / 86%), rgb(204 54 52 / 77%)), url("../images/BSc-Information-Technology.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Responsive Design */

@media (max-width: 768px) {
    .why-informatics {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .programs-title {
        font-size: 2.2rem;
    }
    .why-text {
        font-size: 1.1rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .program-card {
        margin-bottom: 30px;
    }
    .card-header {
        padding: 25px;
    }
    .card-body {
        padding: 30px 25px;
    }
	.learn-more-btn {
		display: block!important;         /* so margin auto works */
		margin: 20px auto 0!important;    /* centers horizontally */
		text-align: center!important;
	  }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    .programs-title {
        font-size: 1.8rem;
    }
    .why-text {
        font-size: 1rem;
    }
}