/* Global Variables */
:root {
    --primary: #001F3F;
    --accent:#497D74;
    --secondary: #71BBB2;
    --dark: #0A0A0A;
    --text: #EFE9D5;
    --gradient: linear-gradient(135deg, var(--primary), #0a98a8);
}

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

html {
    background-color: #000000;
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.binary {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #000000;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 18px;
    font-family: 'futura';
    text-transform: uppercase;
}




.nav-links {
    display: flex;
    justify-content: space-around;
    gap: 5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgb(34,193,195);
    background: linear-gradient(0deg, rgba(34,193,195,1) 0%, rgba(253,187,45,1) 100%);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* position: absolute; */
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    z-index: 2;
    animation: fadeIn 1.9s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons a {
    text-decoration: none;
    color: var(--primary);
    background-color: var(--accent);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.hero-buttons a.outline {
    background: none;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.hero-buttons a:hover {
    background-color: var(--primary);
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator .mouse .wheel {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { top: 8px; }
    50% { top: 20px; }
    100% { top: 8px; }
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #1A1A1A;
    color: var(--text);
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.about-text .bio {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.skills {
    margin-top: 1rem;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    margin-top: 20px;
    background-color: var(--dark);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Timeline Section */
.timeline {
    background-color: var(--dark);
    padding: 4rem 0;
    color: white;
}

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

.timeline-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 2rem;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 5px;
    width: 100%;
    animation: fadeIn 1s ease;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--dark);
    padding: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}


/* Certifications Section */
.certifications {
    background-color: var(--secondary);
    padding: 4rem 0;
    color: black;
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cert-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--dark);
    color: white;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    border: 2px solid var(--accent);
    color: white;
    border-radius: 9px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom:14px;
}

.form-group input:focus + label, .form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    left: 10px;
    font-size: 0.8rem;
}

.cta-button {
    background-color: var(--accent);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #001F3F;
    color: rgb(255, 255, 255);
}

/* Footer */
.footer {
    background-color: var(--dark);
    padding: 2rem 0;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--accent);
    margin-top: 1rem;
}

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

/* Magnetic hover effect transition */
.social-links a {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Text scramble effect styles */
.dud {
    color: var(--accent);
}

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

/* Skill card hover enhancement */
.skill-card {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.320, 1),
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Project card animation enhancement */
.project-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.project-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) rotateZ(-2deg);
    box-shadow: 
        -20px 20px 60px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 191, 255, 0.1);
}

/* Project Cards */
.project-card {
    background: #0A0A0A;
    border: 1px solid #00ff00;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 0px;
    height: 0px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    transition: width 0.5s ease, height 0.5s ease;
}

.project-card:hover::before {
    width: 200px;
    height: 200px;
} 

/* Skill Cards */
.skill-card {
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border: 1px solid #00ff00;
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.skill-card:hover {
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.2);
}

.skill-card i {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Custom Icons for Skills */
.skill-card.hacking i::before { content: "\f09c"; } /* Lock icon */
.skill-card.pentesting i::before { content: "\f3ed"; } /* Shield icon */
.skill-card.development i::before { content: "\f121"; } /* Code icon */
.skill-card.analysis i::before { content: "\f201"; } /* Chart icon */

/* Matrix Rain Background */
.hero::before { 
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

Project Card Styles
.project-card {
    background: rgba(0, 31, 63, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 191, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 191, 255, 0.1) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.project-card:hover::before {
    transform: translateX(100%);
}
.project-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.project-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Certification Card Styles */
.cert-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cert-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    transform: rotate(45deg);
    transition: transform 0.6s;
}
.cert-card:hover::after {
    transform: rotate(45deg) translate(50%, 50%);
}

/* Enhanced Timeline Style */
.timeline-container {
    display: grid;
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}
.timeline-item {
    background-color: rgba(0, 31, 63, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform-origin: left;
    border-left: 5px solid var(--accent);
}
.timeline-item:hover {
    transform: scale(1.02);
}
.timeline-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    position: absolute;
    top: 1.5rem;
    left: -8px;
}
.timeline-content {
    padding-left: 2rem;
}
.timeline-content h3, .timeline-content h4 {
    color: var(--accent);
}
.timeline-light-ray {
    position: absolute;
    left: 0;
    width: 0;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--accent), rgba(255, 255, 255, 0));
    transition: width 0.5s ease-out;
}
.timeline-content h3, .timeline-content p {
    color: var(--text);
}


#cursor {
    height: 100px; /* Increased the radius */
    width: 100px; /* Increased the radius */
    background: linear-gradient(45deg, rgb(0, 255, 153), rgb(0, 118, 22)); /* Dark purple gradient */
    box-shadow: 0 0 20px rgba(85, 24, 121, 0.7), 0 0 40px rgba(112, 48, 160, 0.5); /* Added a stronger blur effect */
    border-radius: 50%;
    position: fixed;
    font-size: 5px;
    pointer-events: none;
    display: flex;
    align-items: center;
    text-align: center;
    color: white; /* Changed to white for better contrast */
    z-index: 1000;
   opacity: 0.51;
    filter: blur(10px); /* Apply a blur effect on the cursor */
}

@media (max-width: 768px) {
    .nav-content{
        font-size: 12px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo, .footer-links, .footer-social {
        margin-bottom: 1rem;
    }

    .footer-links {
        display: flex;
        flex-direction:row;
        align-items: center;
        gap: 1rem;
    }

    .footer-social {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-content{
        font-size: 10px;
        
        
        }
        .nav-links{
            gap: 2rem;
        }
}