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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

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

/* CSS Variables */
:root {
    --primary-color: #FFC107;
    --primary-dark: #FF8F00;
    --primary-light: #FFF9C4;
    --accent-color: #795548;
    --dark-color: #212121;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #757575;
    --gradient-1: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    --gradient-2: linear-gradient(135deg, #FF8F00 0%, #FFC107 100%);
    --shadow-light: 0 8px 25px rgba(255, 193, 7, 0.15);
    --shadow-medium: 0 15px 35px rgba(255, 193, 7, 0.2);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
    will-change: transform;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 70%;
    left: 80%;
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 20%;
    left: 60%;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: -10s;
}

.shape-4 {
    top: 60%;
    left: 20%;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border-radius: 10px;
    animation-delay: -15s;
}

.shape-5 {
    top: 40%;
    left: 90%;
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: -7s;
}

.shape-6 {
    top: 80%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -12s;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 24%, rgba(255, 193, 7, 0.03) 25%, rgba(255, 193, 7, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 193, 7, 0.03) 75%, rgba(255, 193, 7, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(0deg, transparent 24%, rgba(255, 193, 7, 0.03) 25%, rgba(255, 193, 7, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 193, 7, 0.03) 75%, rgba(255, 193, 7, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(4.18);
    margin-left: 1.5em;
}

.logo:hover {
    transform: scale(4.018);
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.navhelp {
    cursor: help;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--gradient-1);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Main Content */
.main-content {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s both;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.notes-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 25px;
    width: 100%;
    max-width: 480px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease both;
    min-height: 160px;
    will-change: transform;
}

.notes-card:nth-child(1) { animation-delay: 0.1s; }
.notes-card:nth-child(2) { animation-delay: 0.2s; }

.notes-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.notes-card:hover .notes-glow {
    opacity: 1;
}

.notes-card:hover .notes-icon {
    transform: scale(1.1) rotate(5deg);
}

.notes-card:hover .download-icon {
    transform: translateX(10px) scale(1.1);
    opacity: 1;
}

.notes-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.notes-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    transition: all 0.4s ease;
    flex-shrink: 0;
    will-change: transform;
}

.notes-content {
    flex: 1;
}

.notes-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.download-icon {
    font-size: 1.6rem;
    color: var(--primary-dark);
    opacity: 0.7;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

/* Solutions Card */
.solutions-card {
    position: relative;
    overflow: hidden;
}

.solutions-options {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.9);
    border-radius: 20px;
}

.solutions-card:hover .solutions-options {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.solution-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    background: var(--gradient-1);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 15px;
    min-width: 120px;
    height: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    transform: translateY(20px);
    animation: slideUp 0.5s ease both;
    cursor: pointer;
}

.solutions-card:hover .solution-option:first-child {
    animation-delay: 0.1s;
}

.solutions-card:hover .solution-option:last-child {
    animation-delay: 0.2s;
}

.solution-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: left 0.3s ease;
    z-index: -1;
}

.solution-option:hover::before {
    left: 0;
}

.solution-option:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.4);
}

.solution-option i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.solution-option:hover i {
    transform: scale(1.2) rotate(10deg);
}

.solution-option span {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.solution-option::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-dark);
    border-radius: 17px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.solution-option:hover::after {
    opacity: 1;
}

.solutions-card:hover {
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.3) !important;
}

.solutions-card:hover .notes-glow {
    opacity: 0.8 !important;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.2) 0%, transparent 70%) !important;
}

/* Back Section */
.back-section {
    text-align: center;
    margin-top: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(-5px);
}

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

.back-btn::before {
    background: var(--white);
}

.back-btn:hover {
    color: var(--primary-dark);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Focus states for accessibility */
.btn:focus,
.nav-links a:focus,
.notes-card:focus,
.solution-option:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .page-title {
        font-size: 3rem;
    }

    .solutions-options {
        gap: 15px;
        padding: 15px;
    }
    
    .solution-option {
        min-width: 110px;
        height: 90px;
        padding: 18px 22px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.5s ease;
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
        margin: 15px 0;
        padding: 15px 20px;
        width: 90%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .main-content {
        padding: 110px 0 60px;
    }

    .page-header {
        margin-bottom: 60px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .notes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 50px;
    }

    .notes-card {
        max-width: 100%;
        padding: 30px 25px;
        min-height: 140px;
    }

    .notes-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .notes-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .download-icon {
        font-size: 1.3rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .solutions-options {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .solution-option {
        min-width: 140px;
        width: 100%;
        max-width: 200px;
        height: 70px;
        padding: 12px 20px;
    }
    
    .solution-option i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }
    
    .solution-option span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .navbar .container {
        padding: 15px 15px;
    }

    .logo {
        font-size: 24px;
    }

    .main-content {
        padding: 100px 0 40px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .notes-grid {
        gap: 20px;
    }

    .notes-card {
        padding: 25px 20px;
        gap: 20px;
        min-height: 120px;
    }

    .notes-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

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

    .solutions-options {
        gap: 10px;
        padding: 12px;
    }
    
    .solution-option {
        min-width: 120px;
        height: 65px;
        padding: 10px 15px;
    }
    
    .solution-option i {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .solution-option span {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 360px) {
    .solutions-options {
        gap: 8px;
        padding: 10px;
    }
    
    .solution-option {
        min-width: 100px;
        height: 60px;
        padding: 8px 12px;
    }
    
    .solution-option i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .solution-option span {
        font-size: 0.7rem;
        letter-spacing: 0.2px;
    }
}

/* Utility Classes */
.menu-open {
    overflow: hidden;
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.logo:hover {
    transform: scale(0.918);
    color: var(--primary-color);
}