/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navigation styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark background */
    backdrop-filter: blur(10px); /* Adds a frosted glass effect */
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    color: #ffffff;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease-in-out;
}

.loading-text {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.loading-text::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 100%;
    background: #333;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero section styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    margin-top: 0;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: filter 0.3s ease;
}

/* Add overlay for better text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-content {
    max-width: 1400px;
    margin: 0;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 10;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-text-container {
    min-height: 80px; /* Further reduced from 100px to 80px */
    margin-bottom: 5px; /* Further reduced from 15px to 5px to decrease spacing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    font-size: 64px;
    font-weight: 600;
    line-height: 1; /* Further reduced from 1.1 to 1 to make text more compact */
    letter-spacing: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 65px; /* Reduced from 70px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 64px;
    background-color: #fff;
    margin-left: 5px;
    animation: blink 0.7s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtext {
    font-size: 22px;
    font-weight: 400;
    max-width: 700px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 auto 45px; /* Increased from 25px to 45px to increase spacing before buttons */
    opacity: 0.9;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.primary-btn, .secondary-btn {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
}

.primary-btn {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.primary-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Social Icons */
.hero-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #fff;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Responsive styles for hero section */
@media (max-width: 768px) {
    .hero-text {
        font-size: 42px;
    }
    
    .cursor {
        height: 42px;
    }
    
    .hero-subtext {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .primary-btn, .secondary-btn {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 32px;
    }
    
    .cursor {
        height: 32px;
    }
    
    .hero-subtext {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        margin-bottom: 15px;
    }
}

/* Scroll Button */
.scroll-btn {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-btn a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.scroll-btn a:hover {
    opacity: 0.7;
}

.scroll-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: #333333;
    display: block;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Common section styles */
.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    letter-spacing: 0;
}

/* Common card style */
.card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* About Section */
.about-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    color: #666;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.skill-category h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #666;
}

/* Experience Section */
.timeline-item {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    margin-bottom: 8px;
    color: #666;
}

/* Education Section */
.education-item {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.education-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.education-item h4 {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.education-item p {
    color: #666;
    margin-bottom: 5px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.project-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-item p {
    color: #666;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #666;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cert-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.cert-item p {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.cert-item a {
    display: inline-block;
    margin-top: 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cert-item a:hover {
    color: #666;
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 30px 0;
    color: #fff;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.footer-center {
    display: flex;
    justify-content: center;
}

.download-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

/* Responsive styles for footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-right {
        justify-content: center;
    }

    .download-btn {
        margin: 0;
    }
}

/* Utility Classes */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.hidden {
    opacity: 0;
}

.remove {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-content {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .hero-text {
        font-size: 48px;
    }

    .hero-subtext {
        font-size: 16px;
    }

    .skills-grid,
    .projects-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .about-text,
    .skill-category,
    .timeline-item,
    .education-item,
    .project-item,
    .cert-item {
        padding: 20px;
    }

    .nav {
        padding: 15px 20px;
    }

    .scroll-btn {
        bottom: 60px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 36px;
    }

    .section-title {
        font-size: 24px;
    }

    .logo {
        font-size: 18px;
    }
}
