:root {
    --primary-color: #6c63ff;
    /* Modern purple */
    --secondary-color: #00d9ff;
    /* Bright cyan */
    --accent-color: #ff6b6b;
    /* Coral pink */
    --text-color: #2d3436;
    --background-color: #f4f6f7;
    --gradient-primary: linear-gradient(135deg, #6c63ff, #00d9ff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}


nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
}

.logo-text {
font-size: 1.8rem;
font-weight: bold;
color: #2d3436;
background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.logo-subtext {
font-size: 1.2rem;
color: #636e72;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}


body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 85%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

.hello-text {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, black);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    font-weight: bold;
    animation: wave 2s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 0.5rem;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(-45deg, #6c63ff, #00d9ff, #ff6b6b, #6c63ff);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#typing-animation {
    font-size: 2rem;
    height: 60px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.4s forwards, float 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    #typing-animation {
        font-size: 1.5rem;
    }
}


/* Sections */
section {
    padding: 80px 0;
    background-color: rgb(12, 3, 14);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* About Column  */

.about-section {
    padding: 80px 0;
    background-color: rgb(12, 3, 14);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Profile Image Column */
.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.about-img {
    margin-bottom: 30px;
    text-align: center;
}

.about-img img {
    width: 250px;
    height: 270px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.about-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.about-info p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.title-s {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Details Column */
.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.heading-section {
    padding: 20px;
}

.professional-summary {
    margin-bottom: 30px;
}

.professional-summary h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.skills-info {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.about-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-details li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-details li:last-child {
    border-bottom: none;
}

.detail-title {
    font-weight: bold;
    color: var(--secondary-color);
}

.contact-buttons {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .col-md-4,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-img img {
        width: 200px;
        height: 200px;
    }

    .about-details li {
        flex-direction: column;
        text-align: center;
    }

    .detail-title {
        margin-bottom: 5px;
    }
}


/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    color: black;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-bar {
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-top: 15px;
}

.skill-bar-fill {
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.skill-card:hover .skill-bar-fill {
    animation: pulse 2s infinite;
}

/* Education */
.education-section {
    padding: 80px 0;
    background-color: rgb(12, 3, 14);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
}

.education-card {
    background: linear-gradient(145deg, #040267, #060388);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.education-card:hover::before {
    opacity: 1;
}

.education-card-content {
    padding: 30px;
    color: white;
}

.degree-type {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.education-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.2s;
}

.institution {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.institution i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.institution p {
    font-size: 1rem;
    line-height: 1.4;
}

.education-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.4s;
}

.year,
.grade {
    display: flex;
    align-items: center;
    gap: 8px;
}

.year i,
.grade i {
    color: var(--secondary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.education-card-content h3:hover {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.grade:hover i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .education-card-content {
        padding: 20px;
    }

    .education-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;

}

.project-card {
    background-color: rgb(4, 2, 103);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-card-content {
    padding: 20px;
}

.project-card-content p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-links {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-links {
    opacity: 1;
    transform: translateY(0);
}

.project-link-btn {
    padding: 8px 20px;
    border: 2px solid var(--text-color);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: var(--text-color);
    color: var(--card-bg);
}


/* Contact */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        /* For simplicity. In real site, add mobile menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}