/* Enhanced UI Styles for NoteNest */

/* Image Standardization */
.hero-img, .intro-img, .about-img, .coding-img {
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img {
    display: none; /* Hide the original image as we're using it as background */
}

.intro-img, .coding-img {
    width: 100%;
    height: 400px;
    margin-right: 0;
    margin-bottom: 20px;
}

.about-img {
    width: 100%;
    height: 400px;
    margin-left: 0;
    margin-bottom: 20px;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

/* Newsletter section image */
.newsletter img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Notes section center image */
.notes .container > div:first-of-type img {
    display: inline-block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        background-attachment: scroll; /* Better performance on mobile */
        background-position: top center;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .intro-img, .about-img, .coding-img {
        width: 100%;
        height: 300px;
        float: none;
        margin: 0 auto 20px;
        display: block;
    }
    
    .newsletter img {
        width: 100%;
        height: auto;
        margin: 0 auto 20px;
        display: block;
    }
}

/* Updated Color Scheme */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #7209b7;
    --text-color: #2b2d42;
    --light-text: #4f5d75;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    --gradient-light: linear-gradient(135deg, #f5f7ff 0%, #e8eeff 100%);
}

/* Enhanced Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links a {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.nav-links a::after {
    display: none;
}

/* Enhanced Hero Section */
.hero {
    background: transparent;
    position: relative;
    padding: 60px 0 150px;
    overflow: hidden;
    background-image: url('aktu.jpeg');
    background-size: cover; /* Ensures image covers the entire section */
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(114, 9, 183, 0.08);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeIn 1.4s ease-out;
}

.hero-content .cta-button {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: pulse 2s infinite;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.5);
}

/* Enhanced Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.features-grid .feature-card:nth-child(1) { --card-index: 1; }
.features-grid .feature-card:nth-child(2) { --card-index: 2; }
.features-grid .feature-card:nth-child(3) { --card-index: 3; }
.features-grid .feature-card:nth-child(4) { --card-index: 4; }
.features-grid .feature-card:nth-child(5) { --card-index: 5; }

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(225, 228, 232, 0.6);
    height: 100%;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Enhanced Notes Section */
.notes {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.search-container {
    display: flex;
    max-width: 700px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(225, 228, 232, 0.8);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.search-container:focus-within {
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.15);
    border-color: rgba(67, 97, 238, 0.3);
}

#searchInput {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-color);
    background: white;
}

#searchButton {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#searchButton:hover {
    background: var(--gradient-accent);
}

.semester-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.semester-selector select {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.semester-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.15);
}

.semester-selector label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

/* Enhanced Newsletter Section */
.newsletter {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.newsletter p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

#emailInput {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-color);
}

.newsletter .cta-button {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 18px 35px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter .cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Footer */
.footer {
    background-color: #2b2d42;
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-section h3:hover::after {
    width: 100px;
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.8;
    line-height: 1.7;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    margin-bottom: 15px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

/* Internships Section */
.internships {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.internships::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.08);
    z-index: 0;
}

.internships-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.internship-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.internship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(67, 97, 238, 0.2);
}

.internship-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    position: relative;
}

.internship-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.company-name {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.internship-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.internship-body {
    padding: 20px;
    flex: 1;
}

.internship-details {
    margin-bottom: 15px;
}

.internship-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--light-text);
}

.internship-detail i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.internship-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.internship-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(67, 97, 238, 0.05);
}

.deadline {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

.apply-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.internship-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-select {
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.15);
}

/* Hackathons Section */
.hackathons {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8eeff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hackathons::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(114, 9, 183, 0.05);
    z-index: 0;
}

.hackathon-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.hackathon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(114, 9, 183, 0.2);
}

.hackathon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.hackathon-image {
    height: 180px;
    overflow: hidden;
}

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

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

.hackathon-content {
    padding: 25px;
    flex: 1;
}

.hackathon-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.hackathon-date {
    display: inline-block;
    background: var(--light-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hackathon-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hackathon-details {
    margin-bottom: 20px;
}

.hackathon-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.hackathon-detail i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.hackathon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.prize-pool {
    font-weight: 700;
    color: var(--accent-color);
}

.register-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114, 9, 183, 0.2);
}

.hackathon-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

/* Responsive styles for internships and hackathons */
@media (max-width: 768px) {
    .internship-filters, .hackathon-filters {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .internships-container, .hackathons-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .internship-card, .hackathon-card {
        margin-bottom: 20px;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 992px) {
    .hero-content {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
        background-attachment: scroll;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .newsletter {
        padding: 70px 0;
    }
    
    .newsletter h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        border-radius: 16px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    #emailInput, .newsletter .cta-button {
        width: 100%;
        border-radius: 0;
        padding: 15px 20px;
    }
    
    .newsletter {
        padding: 70px 15px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 16px;
        margin: 0 15px 30px;
    }
    
    #searchInput, #searchButton {
        width: 100%;
        border-radius: 0;
    }
    
    #searchButton {
        padding: 15px;
    }
    
    .semester-selector {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }
    
    .semester-selector select {
        width: 100%;
    }
    
    .feature-card {
        margin: 0 15px;
        width: calc(100% - 30px);
    }
    
    .features-grid {
        display: block;
        padding: 0;
    }
}