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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    overflow-x: hidden;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 5%;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #00d4ff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s linear infinite;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0f0c29;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

/* Section Styling */
section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    opacity: 0.9;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.skill-card h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.tag {
    background: rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00ff88;
}

.project-card p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Education Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00d4ff, #00ff88);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00d4ff;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.timeline-item h3 {
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.timeline-item .period {
    color: #00d4ff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.certificate-content {
    padding: 2rem;
}

.certificate-content h3 {
    font-size: 1.5rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cert-description {
    opacity: 0.8;
    line-height: 1.6;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

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

.contact-item h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    word-break: break-word;
}

.contact-item a:hover {
    opacity: 1;
    color: #00ff88;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 12, 41, 0.8);
    margin-top: 4rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-100px) translateX(50px);
    }
    50% {
        transform: translateY(-200px) translateX(-50px);
    }
    75% {
        transform: translateY(-100px) translateX(-100px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero h2 { font-size: 1.8rem; }
    .section-title { font-size: 2.5rem; }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        top: -100%;
        left: 0;
        width: 100%;
        background: rgba(15, 12, 41, 0.98);
        padding: 5rem 2rem 2rem;
    }

    nav.active {
        top: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    nav a {
        font-size: 1.2rem;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 8rem 1.5rem 2rem;
    }

    .hero h1 { 
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero h2 { 
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    /* Sections */
    section {
        padding: 4rem 1.5rem;
    }

    .section-title { 
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding: 1.2rem;
    }

    .timeline-item::before {
        left: -2.5rem;
    }

    .timeline-item:hover {
        transform: translateX(5px);
    }

    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificate-image {
        height: 220px;
    }

    .certificate-content {
        padding: 1.5rem;
    }

    .certificate-content h3 {
        font-size: 1.3rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 { 
        font-size: 2rem;
    }
    
    .hero h2 { 
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title { 
        font-size: 1.8rem;
    }

    .skill-card h3 {
        font-size: 1.3rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .certificate-content h3 {
        font-size: 1.2rem;
    }

    .cert-issuer {
        font-size: 1rem;
    }

    nav a {
        font-size: 1.1rem;
    }
}