/* Professional Portfolio Styles with Modern Animations */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #0f62fe;
    --secondary-color: #00bfa6;
    --accent-color: #ff6b6b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    overflow-x: hidden;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(15, 98, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 166, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-left {
    animation: slideInLeft 1.5s ease-in-out;
    will-change: transform;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slideInLeft {
    from { transform: translate3d(-80px, 0, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 20px 60px rgba(15, 98, 254, 0.4); }
    100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
}

@keyframes spinToFlipped {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes spinToNormal {
    0% { transform: rotateY(180deg); }
    100% { transform: rotateY(540deg); }
}

.spin-to-flipped {
    animation: spinToFlipped 3.5s ease-in-out;
}

.spin-to-normal {
    animation: spinToNormal 3.5s ease-in-out;
}

.flipped {
    transform: rotateY(180deg);
}

.show-text .profile-image::before {
    opacity: 1;
}

.profile-image {
    position: relative;
    transition: transform 3.5s ease-in-out;
}

.profile-image::before {
    content: "Hello !";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(180deg);
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    background: white;
    padding: 20px;
    border-radius: 50%;
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.round-image {
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(15, 98, 254, 0.3);
}

.round-image {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center -10%;
    transition: var(--transition);
}

.profile-image:hover .round-image {
    transform: scale(1.1);
}

.hero-right {
    animation: slideInRight 1.5s ease-in-out 0.3s both;
    will-change: transform;
}

@keyframes slideInRight {
    from { transform: translate3d(80px, 0, 0); opacity: 0; }
    to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.hero-right h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

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

.highlight-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.4;
}

    .about-description {
        font-size: 1.1rem;
        line-height: 1.8;
        color: var(--text-dark);
        margin-bottom: 1.5rem;
        text-align: justify; /* Align text evenly on both sides */
    }

    .about-text p {
        text-align: justify;
    }

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.education-card:nth-child(1) { animation-delay: 0.1s; }
.education-card:nth-child(2) { animation-delay: 0.2s; }
.education-card:nth-child(3) { animation-delay: 0.3s; }

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.education-card:hover::before {
    width: 6px;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.education-date {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(15, 98, 254, 0.1);
    font-size: 0.9rem;
    border: 1px solid rgba(15, 98, 254, 0.2);
}

.institution {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.location {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.education-details h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.achievements {
    list-style: none;
    padding: 0;
}

.achievements li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
}

.achievements li::before {
    content: "▹";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out;
}

.skill-category:nth-child(1) { animation-delay: 0.1s; }
.skill-category:nth-child(2) { animation-delay: 0.2s; }

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
}

.skill-category h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.prog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out;
}

.achievement-card:nth-child(1) { animation-delay: 0.1s; }
.achievement-card:nth-child(2) { animation-delay: 0.2s; }
.achievement-card:nth-child(3) { animation-delay: 0.3s; }
.achievement-card:nth-child(4) { animation-delay: 0.4s; }

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.achievement-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.achievement-date {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(15, 98, 254, 0.1);
    font-size: 0.9rem;
    border: 1px solid rgba(15, 98, 254, 0.2);
}

.achievement-description {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out;
}

.certification-card:nth-child(1) { animation-delay: 0.1s; }
.certification-card:nth-child(2) { animation-delay: 0.2s; }
.certification-card:nth-child(3) { animation-delay: 0.3s; }

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.certification-header h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.certification-date {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(15, 98, 254, 0.1);
    font-size: 0.9rem;
    border: 1px solid rgba(15, 98, 254, 0.2);
}

.certification-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.certification-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.certification-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.certification-link:hover::before {
    left: 100%;
}

.certification-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease-out;
}

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.contact-info h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-info p:hover {
    transform: translateX(5px);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(15, 98, 254, 0.1);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

#contact-form input,
#contact-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(15, 98, 254, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
    transform: translateY(-2px);
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

#contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

#contact-form button:hover::before {
    left: 100%;
}

#contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
}

#contact-form button:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
}

footer p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 3rem; /* Adjusted to match nav height and remove white space */
    }

    nav {
        height: 3rem; /* Fixed height for consistent spacing */
    }

    .nav-content {
        padding: 0.5rem 0.5rem; /* Symmetric padding for better alignment */
        flex-wrap: nowrap; /* Keep all items on same line */
        justify-content: space-between; /* Better spacing */
        align-items: center;
        gap: 0.1rem; /* Tighter gap */
        height: 100%; /* Fill nav height */
    }

    .logo a {
        font-size: 0.5rem; /* Match nav links font size for alignment */
        font-weight: 500; /* Match nav links font weight for consistent line height */
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 1; /* Ensure straight baseline alignment */
    }

    .nav-links {
        display: flex; /* Restore normal flex display */
        gap: 0.1rem; /* Very tight gap */
        flex-wrap: nowrap; /* Keep in single line */
        flex-shrink: 1;
        min-width: 0;
        justify-content: flex-end;
        height: 100%; /* Fill nav height */
        align-items: center; /* Vertically center links */
    }

    .nav-links li {
        flex-shrink: 1; /* Allow shrinking */
        height: 100%; /* Fill nav height */
        display: flex;
        align-items: center; /* Vertically center each link */
    }

    .nav-links a {
        font-size: 0.5rem; /* Smaller font for fitting */
        padding: 0.1rem 0.2rem; /* Tighter padding */
        white-space: nowrap;
        flex-shrink: 1; /* Allow shrinking */
        min-width: 0;
        height: 100%; /* Fill li height */
        display: flex;
        align-items: center; /* Vertically center text */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem; /* Reduced gap for better spacing */
        text-align: center;
        padding: 0 1rem;
    }

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

    .profile-image {
        width: 200px; /* Smaller image */
        height: 200px;
        margin: 0 auto; /* Center the image */
    }

    .hero-right h1 {
        font-size: 1.6rem; /* Smaller title - decreased by 4 */
    }

    .tagline {
        font-size: 0.6rem; /* Smaller tagline - decreased by 4 */
    }

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

    section {
        padding: 2rem 0; /* Reduced section padding */
    }

    section h2 {
        font-size: 1.4rem; /* Smaller section headings - decreased by 4 */
    }

    .about-text {
        padding: 1.5rem; /* Symmetric padding for aligned margins */
        margin: 1.5rem; /* 4-side margins */
        border-radius: 0; /* Remove rounded corners (no lines) */
        box-shadow: none; /* Remove shadow (no lines) */
    }

    .highlight-text {
        font-size: 0.8rem; /* Smaller highlight text - decreased by 4 */
    }

    /* Mobile text styling: 16px font-size and 1.5 line-height for all text except headings */
    p, .about-description, .certification-description, .education-details, .contact-info p, .skill-list li, .achievements li {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .education-card,
    .certification-card {
        padding: 2rem; /* Increased card padding for better visibility */
    }

    .skill-category {
        padding: 2rem; /* Increased skill category padding */
    }

    .contact-info {
        padding: 2rem; /* Increased contact info padding */
    }

    .education-grid,
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .prog-list {
        justify-content: center;
    }

    .tech-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 2rem;
    }

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

    .profile-image {
        width: 300px;
        height: 300px;
        margin: 0 auto; /* Ensure centering */
    }

    .hero-right h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.3rem;
    }

    .social-links {
        justify-content: center;
        gap: 2rem;
    }

    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .social-logo {
        width: 28px;
        height: 28px;
    }

    .education-grid,
    .certifications-grid,
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Increased width for laptop screens */
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Increased width for laptop screens */
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* TV/Large Screen Styles */
@media (min-width: 1440px) {
    .hero-grid {
        gap: 6rem;
        padding: 0 4rem;
    }

    .profile-image {
        width: 400px;
        height: 400px;
    }

    .hero-right h1 {
        font-size: 4rem;
    }

    .tagline {
        font-size: 1.8rem;
    }

    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .social-logo {
        width: 28px;
        height: 28px;
    }

    .education-grid,
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

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

    .contact-content {
        gap: 6rem;
    }

    section h2 {
        font-size: 3rem;
    }

    .about-text {
        padding: 4rem;
    }

    .highlight-text {
        font-size: 2rem;
    }
}

/* Scroll Animations */
@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 98, 254, 0.3);
}

/* Skill dots for tech badges */
.skill-dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 0.5rem;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.dot.filled {
    background: white;
}

.dot.half {
    background: rgba(255, 255, 255, 0.7);
}
