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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Properties */
:root {
    --primary-red: #ff0000;
    --secondary-red: #cc0000;
    --accent-red: #ff3333;
    --dark-red: #990000;
    --dark-gray: #1a1a1a;
    --light-gray: #333333;
    --white: #ffffff;
    --black: #000000;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary-red);
    animation: logoGlow 2s ease-in-out infinite alternate;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px var(--primary-red)); }
    100% { filter: drop-shadow(0 0 20px var(--accent-red)); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6rem;
}

.hero-text {
    flex: 1;
    animation: slideInLeft 1s ease-out;
    max-width: 50%;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.greeting {
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--primary-red);
    margin-bottom: 0.3rem;
    animation: textGlow 2s ease-in-out infinite alternate;
    font-family: 'Rajdhani', sans-serif;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px var(--primary-red); }
    100% { text-shadow: 0 0 20px var(--primary-red), 0 0 30px var(--accent-red); }
}

.intro {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 0.3rem;
    font-family: 'Rajdhani', sans-serif;
    opacity: 0.9;
}

.name-short { display: none; }
.name-full { display: inline; }

.name {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 500px) {
    .name-short { display: inline; }
    .name-full { display: none; }
    .name {
        font-size: 1.7rem;
    }
}

.title-container {
    margin-bottom: 1rem;
}

.title-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.title-text::after {
    content: '|';
    color: var(--primary-red);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.skills-loop {
    margin-top: 1rem;
}

.skill-item {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 600;
    display: inline-block;
    animation: skillGlow 3s ease-in-out infinite;
}

@keyframes skillGlow {
    0%, 100% { 
        text-shadow: 0 0 10px var(--white);
    }
    50% { 
        text-shadow: 0 0 20px var(--white), 0 0 30px rgba(255, 255, 255, 0.8);
    }
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
    max-width: 50%;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary-red);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
    background: transparent;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: transparent;
}

.image-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { 
        opacity: 0.5;
        transform: scale(1);
    }
    100% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    transform: rotate(45deg);
}

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

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, var(--primary-red), var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-red);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--dark-gray);
}

.about-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 1rem;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: var(--black);
}

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

.skill-card {
    background: var(--dark-gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.skill-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--dark-gray);
}

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

.project-card {
    background: var(--black);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
    color: var(--primary-red);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.project-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--black);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.2rem;
    color: #cccccc;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--primary-red);
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    width: 30px;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.footer p {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .greeting {
        font-size: 2.2rem;
    }
    
    .intro {
        font-size: 1.8rem;
    }
    
    .name {
        text-align: center;
        width: 100%;
        white-space: nowrap;
        font-size: 1.002rem;
    }
    
    .title-text {
        font-size: 1.8rem;
    }
    
    .skill-item {
        font-size: 1.3rem;
    }
    
    .image-container {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .profile-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    margin: 3px 0;
    transition: 0.3s;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Certification Section */
.certification {
    padding: 6rem 0;
    background: var(--black);
}

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

.cert-card {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 270px;
    max-width: 420px;
    margin: 0 auto;
}
.cert-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255,0,0,0.18);
}
.cert-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: block;
}
.cert-desc {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .cert-card {
        min-width: 0;
        max-width: 100%;
    }
    .cert-img {
        height: 160px;
    }
} 