/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --accent-color: #00c6ff;
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --bg-color: #ffffff;
    --dark-bg-color: #1a1a2e;
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
}

.presentation-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* Consistent alignment to the start (top) of the flex container */
    align-items: flex-start; 
    justify-content: center; /* Horizontally centers .page-content */
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, visibility 0.6s, transform 0.6s ease-out;
    padding: 20px; /* Base side and bottom padding */
    box-sizing: border-box;
    overflow-y: auto;
    /* Increased padding-top to prevent content from being cut off */
    padding-top: clamp(80px, 12vh, 160px);
}

/* Remove the specific margin-top for content within these pages since we increased the overall padding-top */
/* #page4 .page-content,
#page5 .page-content {
    margin-top: clamp(40px, 8vh, 120px);
} */

/* For very tall screens, you might want even more top padding on .page */
@media (min-height: 900px) {
    .page {
        /* align-items: center; /* REMOVED - Keep align-items: flex-start */
        /* Optionally, increase padding-top further if desired for very tall screens */
        padding-top: clamp(100px, 15vh, 200px); 
    }
    /* If the combination of .page's padding-top and .page-content's margin-top on pages 4 & 5
       becomes too much on tall screens, you can reduce the margin-top here: */
    /*
    #page4 .page-content,
    #page5 .page-content {
        margin-top: clamp(20px, 5vh, 80px); 
    }
    */
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}

.page-content {
    max-width: 900px;
    width: 90%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    color: var(--text-color);
}

/* The rule below is unusual. Commenting out to test if it has unintended consequences.
   Elements like p, ul, li, button don't typically inherit backgrounds you'd want to remove this way. */
/* 
h1, h2, h3, p, ul, li, button {
    background: none; 
} 
*/

/* Headings and Text */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 { 
    font-size: 3.2em; 
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 { 
    font-size: 2.4em; 
    margin-bottom: 20px;
}

h3 { 
    font-size: 1.8em; 
}

p { 
    margin-bottom: 20px; 
    font-size: 1.2em; 
    color: #555; 
    line-height: 1.8;
}

/* Logo */
.logo {
    max-width: 180px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Buttons */
.cta-button, .nav-button, .link-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button::before, .nav-button::before, .link-button::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;
}

.cta-button:hover::before, .nav-button:hover::before, .link-button:hover::before {
    left: 100%;
}

.cta-button:hover, .nav-button:hover, .link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,123,255,0.4);
}

.cta-button i, .nav-button i, .link-button i { 
    margin-left: 8px; 
    transition: transform 0.3s ease;
}

.cta-button:hover i, .nav-button:hover i, .link-button:hover i {
    transform: translateX(3px);
}

.large-cta { 
    padding: 18px 40px; 
    font-size: 1.3em; 
}

.nav-button.prev-button { 
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 8px 25px rgba(108,117,125,0.3);
}

.nav-button.prev-button:hover { 
    box-shadow: 0 12px 35px rgba(108,117,125,0.4);
}

.link-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.link-button:hover {
    background: var(--primary-color);
    color: white;
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.2);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.nav-dots .dot {
    width: 16px;
    height: 16px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dots .dot:hover {
    background-color: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.nav-dots .dot.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0,198,255,0.6);
    border-color: white;
}

/* Page Specific Styles */
/* Page 1 (Hero) */
#page1 .page-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
    border: 2px solid rgba(0,123,255,0.1);
}

/* Page 2 (Challenges) */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.challenge-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    font-size: 1.1em;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.challenge-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.challenge-item i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.4em;
}

/* Page 3 (Profile) */
.profile-section {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,198,255,0.3);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-text { 
    flex: 1; 
}

.strengths-list {
    list-style: none;
    padding-left: 0;
}

.strengths-list li {
    margin-bottom: 12px;
    font-size: 1.1em;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.strengths-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.2em;
}

/* Page 4 (Services) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h3 { 
    font-size: 1.5em; 
    margin-bottom: 15px; 
    color: var(--primary-color);
}

.learn-more-btn {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.learn-more-btn:hover {
    color: var(--accent-color);
}

.learn-more-btn i { 
    font-size: 0.8em; 
    transition: transform 0.3s ease; 
    margin-left: 5px;
}

.service-card.open .learn-more-btn i { 
    transform: rotate(180deg); 
}

.service-detail {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-out;
    font-size: 1em;
    color: #666;
    text-align: left;
    margin-top: 0;
    padding: 0 20px;
    border-left: 3px solid transparent;
}

.service-card.open .service-detail {
    max-height: 200px;
    margin-top: 20px;
    padding: 15px 20px;
    border-left-color: var(--accent-color);
    background: rgba(0,198,255,0.05);
    border-radius: 0 10px 10px 0;
}

/* Page 5 (Value) */
.value-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.value-points div {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,198,255,0.3);
    transition: transform 0.3s ease;
}

.value-points div:hover {
    transform: translateY(-3px);
}

.value-points div i { 
    margin-right: 10px; 
    font-size: 1.2em;
}

.testimonial {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-left: 6px solid var(--primary-color);
    padding: 25px;
    margin: 35px auto;
    max-width: 750px;
    font-style: italic;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.testimonial cite {
    display: block;
    text-align: right;
    margin-top: 15px;
    font-weight: bold;
    color: var(--secondary-color);
    font-style: normal;
}

/* Page 6 (Quiz) */
.quiz-container { 
    margin: 30px 0; 
}

.quiz-question {
    text-align: left;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.quiz-question:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.quiz-question p { 
    margin-bottom: 15px; 
    font-weight: bold; 
    color: var(--primary-color);
    font-size: 1.1em;
}

.quiz-question label { 
    margin-right: 20px; 
    cursor: pointer; 
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.quiz-question label:hover {
    background: rgba(0,123,255,0.1);
}

.quiz-question input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
}

#quizResultText { 
    font-weight: bold; 
    font-size: 1.2em; 
    padding: 15px;
    border-radius: 10px;
    background: rgba(0,123,255,0.1);
    border-left: 4px solid var(--primary-color);
}

/* Page 7 (Contact) */
#page7 .page-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,248,255,0.95));
    border: 2px solid rgba(0,123,255,0.1);
}

.contact-info { 
    margin-top: 30px; 
    font-size: 1.2em; 
    line-height: 2;
}

.contact-info a { 
    color: var(--primary-color); 
    font-weight: bold; 
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--primary-color);
}

.resume-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

.resume-content ul {
    margin-bottom: 20px;
}

.resume-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page.active .animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.2s; }
.animate-on-scroll.delay-2 { transition-delay: 0.4s; }
.animate-on-scroll.delay-3 { transition-delay: 0.6s; }
.animate-on-scroll.delay-4 { transition-delay: 0.8s; }

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.4em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    
    .page {
        padding-top: clamp(60px, 10vh, 120px);
    }
    
    .page-content { 
        padding: 25px; 
        width: 95%;
    }
    
    .profile-section { 
        flex-direction: column; 
        text-align: center;
        gap: 20px;
    }
    
    .profile-pic { 
        width: 180px; 
        height: 180px; 
    }
    
    .nav-dots { 
        display: none; 
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .value-points {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    
    .page {
        padding-top: clamp(50px, 8vh, 100px);
    }
    
    .page-content { 
        padding: 20px; 
    }
    
    .cta-button, .nav-button, .link-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .large-cta {
        padding: 15px 25px;
        font-size: 1.1em;
    }
} 