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

:root {
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1c1c1c;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-accent: #00f2ff;
    
    --primary-color: #00f2ff;
    --secondary-color: #7000ff;
    
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
 
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    

    --section-padding: 80px 20px;
    --container-width: 1200px;
    
    
    --transition-fast: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05) 0%, rgba(10, 10, 10, 1) 70%);
    position: relative;
    flex-direction: column;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image .img-box {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-card);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    position: relative;
    animation: floatImage 4s ease-in-out infinite;
}

.hero-image .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hero h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.hero h3 span.typing-text {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 20px auto 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}




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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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


.section-padding {
    padding: var(--section-padding);
}


.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}



.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.about-text span {
    color: var(--primary-color);
    font-weight: 600;
}

.education-box {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

.edu-item .year {
    color: var(--text-accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
}


.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

.skill-card {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: #252525;
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.1);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.skill-card span {
    font-weight: 500;
    color: var(--text-primary);
}


@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-image .img-box {
        width: 300px;
        height: 300px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h3 {
        font-size: 1.4rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .education-box {
        text-align: left;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    max-width: 100%;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.project-img {
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links a {
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    max-width: 100%;
}

.cert-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
}

.cert-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.1);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.cert-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cert-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cert-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: 10px;
}

.cert-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: 0.3s;
}

.cert-link:hover {
    color: white;
}

.cert-link i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

/* About Adjustments */
.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}


.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    width: 100%;
    margin-top: 20px;
    text-align: left;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.contact-form-col {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .input-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}


@media (max-width: 768px) {
    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-col {
        order: 1; 
    }
}

.contact-item {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--gradient-main);
    color: white;
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    *,
    *::before,
    *::after {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow: hidden;
    }

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

   
    .hero {
        padding-top: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h3 {
        font-size: 1.1rem;
    }

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

    .hero-image .img-box {
        width: 220px;
        height: 220px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

  
    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .education-box {
        padding: 15px;
        margin: 15px 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .edu-item {
        max-width: 100% !important;
    }

    .stats {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item h4 {
        font-size: 1.5rem;
    }

    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .skill-card {
        padding: 15px 10px;
    }

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

    .skill-category h3 {
        font-size: 1.2rem;
    }

 
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-img {
        height: 150px;
        font-size: 2.5rem;
    }

    .project-info {
        padding: 18px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

   
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cert-card {
        padding: 20px 15px;
        gap: 15px;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .cert-info h3 {
        font-size: 1rem;
    }


    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-item i {
        font-size: 2rem;
    }

    .contact-item p {
        font-size: 0.95rem;
        word-break: break-word;
    }

    .contact-form-col {
        padding: 18px;
    }

    .social-links {
        justify-content: center;
    }

  
    footer {
        padding: 30px 0;
    }

   
    .section-padding {
        padding: 50px 15px;
    }

   
    nav {
        padding: 12px 0;
    }

    .logo {
        font-size: 1.3rem;
    }
}

