:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: linear-gradient(to right, #1a1a3c, #2a2a72);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo a {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white */
}

.logo span {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

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

.nav-links a:hover {
    color: var(--secondary-color);
}

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

/* Hero Section */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url('./images/cyber-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Global section styling */
section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* About Section */
#about {
    padding: 5rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-cta {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.about-cta:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.about-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

/* Skills Section */
#skills {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--white);
}

#skills h2 {
    color: #1a237e;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card > * {
    position: relative;
    z-index: 2;
}

.skill-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(42, 42, 114, 0.1), rgba(0, 159, 253, 0.1));
    border-radius: 20px;
}

.skill-icon i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.skill-card:hover .skill-icon i {
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    color: #1a237e;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Projects Section */
#projects {
    padding: 5rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.project-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(42, 42, 114, 0.1), rgba(0, 159, 253, 0.1));
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Section */
#contact {
    position: relative;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: var(--white);
    padding: 5rem 2rem 0;
    margin-top: 5rem;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    position: relative;
    z-index: 2;
}

#contact h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 1000px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-link {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

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

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.contact-details {
    overflow: hidden;
}

.contact-details p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-details h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-item:hover .contact-icon {
    background: var(--white);
    transform: rotate(5deg);
}

.contact-item:hover .contact-icon i {
    color: #1a237e;
    transform: scale(1.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link:hover::before {
    transform: translateY(0);
}

.social-link:hover i {
    color: #1a237e;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-card:last-child {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0.8rem 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(to right, #1a1a3c, #2a2a72);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        z-index: 1000;
    }

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

    .menu-btn {
        display: block;
        right: 20px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
    }
    
    .skill-icon i {
        font-size: 2.5rem;
    }
    
    .project-card {
        padding: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }

    #contact {
        padding-top: 4rem;
        margin-top: 3rem;
    }

    #contact::before {
        height: 30px;
        top: -30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        margin-bottom: 3rem;
    }

    .footer-logo {
        height: 35px;
    }

    #contact h2 {
        font-size: 2.2rem;
    }

    .contact-link {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon i {
        font-size: 1.5rem;
    }

    .social-links {
        margin: 3rem 0;
    }

    .footer-logo {
        height: 35px;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        padding: 2rem 0;
    }

    .about-text {
        padding: 0 1rem;
    }
    
    .contact-header p {
        padding: 0 1rem;
        font-size: 1rem;
    }
}

/* Add typing animation styles */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--secondary-color);
    width: 0;
    animation: typing 3.5s steps(40, end) forwards,
               blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color) }
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-5px) rotate(360deg);
    transition: all 0.5s ease;
}

.scroll-top.visible {
    display: flex;
}

/* Add reveal animation */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize transitions for specific properties */
.nav-links a,
.social-link,
.contact-item,
.skill-card,
.project-card {
    transition: transform 0.3s ease, 
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Update menu button styles */
.menu-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 12px 15px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-btn i {
    color: var(--white);
    font-size: 2rem;
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 15px;
    }

    .menu-btn {
        display: block;
    }

    .menu-btn:hover {
        background: transparent;
    }
}

.contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 1rem;
}

/* Experience Section */
#experience {
    padding: 5rem 2rem;
    background: var(--white);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-content {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
}

.timeline-content:hover .company-logo {
    transform: scale(1.05);
}

.company-details h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.company-details h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.duration {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Education Section */
#education {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.education-grid {
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateX(10px);
}

.school-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
}

.education-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .company-info {
        flex-direction: column;
        text-align: center;
    }
    
    .education-item {
        flex-direction: column;
        text-align: center;
    }
}