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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px; 
    text-align: center;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    min-height: 100vh; 
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f5ff, #ff00f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    order: 2;
}

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

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

.nav-links a:hover {
    color: #00f5ff;
}

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

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

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    order: 1;
}

.bar {
    width: 25px;
    height: 3px;
    background: #00ffff;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.nav-toggle.is-active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 245, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #cccccc;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #aaaaaa;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00f5ff, #ff00f5);
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 245, 255, 0.6);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

/* About Section */
.about {
    padding: 8px 20px;
    margin: 0 auto;
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ffffff, #00f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.8;
    text-align: center;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Skills Section - Tech Stack Style */
.skills {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-stack-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.tech-stack-highlight {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.tech-stack-subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #999999;
    text-transform: uppercase;
    margin-top: 1rem;
}

.tech-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 2rem;
    justify-items: center;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icon:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.3);
    border-color: rgba(0, 180, 216, 0.5);
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.3));
}

.tech-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #00b4d8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.tech-icon:hover::after {
    opacity: 1;
}

/* Scrolling Marquee */
.tech-marquee {
    overflow: hidden;
    background: transparent;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 0 2rem;
}

.marquee-separator {
    font-size: 2rem;
    color: rgba(0, 180, 216, 0.5);
    padding: 0 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Education Section */
.education {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.education-timeline {
    position: relative;
    margin-top: 4rem;
}

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

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease;
}

.timeline-dot {
    position: absolute;
    left: 22px;
    top: 0;
    width: 18px;
    height: 18px;
    background: #00f5ff;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.6);
    z-index: 1;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: left;
}

.timeline-content:hover {
    transform: translateX(10px);
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, rgba(0, 245, 255, 0.2), rgba(255, 0, 245, 0.2));
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00f5ff;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.timeline-institution {
    font-size: 1.2rem;
    font-weight: 500;
    color: #00f5ff;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.highlight-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #00f5ff;
    transition: all 0.3s ease;
}

.highlight-tag:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-content: center;
    align-items: center;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.project-content {
    background-color: #000000;
    padding: 20px;
    color: #ffffff;
    max-width: 90%;
    margin: 0 auto;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

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

.project-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.2);
    color: #00f5ff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.project-link:hover {
    background: rgba(0, 245, 255, 0.3);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-form {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 350px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(0, 245, 255, 0.1);
}

.contact-form textarea {
    grid-column: 1 / -1;
    min-height: 180px;
    resize: vertical;
    padding: 1.5rem;
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00f5ff, #ff00f5);
    color: #000000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message Styles */
.message {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Link buttons */
.rect-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
    margin: 40px 0;
}

.rect-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    min-width: 120px;
}

.rect-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.rect-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

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

/* Mobile Styles */
@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    nav {
        padding: 0.8rem 1rem;
        width: 100%;
        margin: 0;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-toggle {
        display: flex;
        order: 1;
    }
    
    .logo {
        order: 2;
        margin-left: auto;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        padding: 3rem 0;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 1rem 2rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(0, 245, 255, 0.1);
        color: #00f5ff;
    }

    .hero {
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about {
        padding: 4rem 1rem;
    }
    
    .about-grid {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .about-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .about-image img {
        height: 400px;
    }

    /* Mobile Skills */
    .skills {
        padding: 4rem 1rem;
    }

    .tech-stack-title {
        font-size: 2rem;
    }

    .tech-stack-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .tech-icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }

    .marquee-item {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .marquee-separator {
        font-size: 1.2rem;
    }

    /* Mobile Education */
    .education {
        padding: 4rem 1rem;
    }

    .education-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 3rem;
    }

    .timeline-dot {
        left: 7px;
        width: 16px;
        height: 16px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .timeline-institution {
        font-size: 1.1rem;
    }

    .projects {
        padding: 4rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }

    .contact {
        padding: 4rem 1rem;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 480px) {
    body {
        padding-top: 55px;
    }
    
    nav {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-links {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about,
    .skills,
    .education,
    .projects,
    .contact {
        padding: 3rem 0.8rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-title {
        font-size: 1.2rem;
    }
}

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

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}