/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideInLeft 0.8s ease 0.3s forwards;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(0);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-text {
    display: inline-block;
}

.logo a:hover {
    color: var(--primary-dark);
}

.logo a:hover .logo-image {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }

    .logo a {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .logo a:hover .logo-image {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }

    .logo a {
        font-size: 1rem;
    }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.nav-link:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    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);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/Gemini_Generated_Image_8j4v38j4v38j4v38.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 0;
    animation: gradient 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
    display: block;
}

.hero-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-logo-image {
    height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.hero-logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.hero-content .greeting {
    animation: slideInLeft 0.8s ease 0.2s both;
}

.hero-content .name {
    animation: slideInRight 0.8s ease 0.4s both;
}

.hero-content .hero-subtitle {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-content .hero-description {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-content .hero-buttons {
    animation: fadeInUp 0.8s ease 1s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.name {
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

    .btn-primary:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: var(--shadow-xl);
        animation: pulse 1s ease infinite;
    }

    @media (max-width: 768px) {
        .btn-primary:hover {
            animation: none;
        }
    }

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px) scale(1.05);
    border-color: white;
}

.scroll-indicator {
    position: relative;
    text-align: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite, float 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
    min-width: 100px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    justify-content: center;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.image-placeholder svg {
    width: 150px;
    height: 150px;
}

.image-placeholder span {
    margin-top: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
    animation: pulse 1s ease infinite;
}

@media (max-width: 768px) {
    .profile-image {
        animation: none;
    }

    .profile-image:hover {
        transform: scale(1.05);
        animation: none;
    }

    .project-icon {
        animation: none;
    }

    .education-icon {
        animation: none;
    }

    .contact-icon {
        animation: none;
    }

    .hero::after {
        animation: none;
    }

    .skill-progress::after {
        animation: none;
    }
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.profile-objective {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.highlight-item strong {
    color: var(--primary-color);
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) .timeline-content {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) .timeline-content {
    animation-delay: 0.2s;
}

    .timeline-content:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-xl);
    }

    @media (max-width: 768px) {
        .timeline-content:hover {
            transform: translateY(-3px);
        }
    }

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.responsibilities {
    margin-top: 1rem;
}

.responsibilities li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.responsibilities li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ========================================
   Skills Section
   ======================================== */
.skills {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark), var(--primary-color));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradient 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-icon-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    border: 2px solid transparent;
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.5s ease forwards;
}

.skill-icon-item:nth-child(1) { animation-delay: 0.1s; }
.skill-icon-item:nth-child(2) { animation-delay: 0.15s; }
.skill-icon-item:nth-child(3) { animation-delay: 0.2s; }
.skill-icon-item:nth-child(4) { animation-delay: 0.25s; }
.skill-icon-item:nth-child(5) { animation-delay: 0.3s; }
.skill-icon-item:nth-child(6) { animation-delay: 0.35s; }
.skill-icon-item:nth-child(7) { animation-delay: 0.4s; }
.skill-icon-item:nth-child(8) { animation-delay: 0.45s; }

    .skill-icon-item:hover {
        border-color: var(--primary-color);
        transform: translateY(-5px) scale(1.1) rotate(2deg);
        box-shadow: var(--shadow-md);
        animation: pulse 0.6s ease;
    }

    @media (max-width: 768px) {
        .skill-icon-item:hover {
            transform: translateY(-3px) scale(1.05);
            animation: none;
        }
    }

/* ========================================
   Education Section
   ======================================== */
.education {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.6s ease forwards;
}

    .education-item:hover {
        transform: translateY(-10px) translateX(-5px) scale(1.02);
        box-shadow: var(--shadow-xl);
    }

    @media (max-width: 768px) {
        .education-item:hover {
            transform: translateY(-3px);
        }
    }

.education-icon {
    animation: float 4s ease-in-out infinite;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.education-icon svg {
    width: 30px;
    height: 30px;
}

.education-details h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-details h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-details .institution {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.education-details .location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-details .gpa {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-details .duration {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: zoomIn 0.6s ease forwards;
}

.project-item:nth-child(1) {
    animation-delay: 0.1s;
}

.project-item:nth-child(2) {
    animation-delay: 0.2s;
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    box-shadow: var(--shadow-xl);
}

.project-icon {
    animation: float 3s ease-in-out infinite;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-item h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   Certifications Section
   ======================================== */
.certifications {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.certification-item:nth-child(1) {
    animation-delay: 0.1s;
}

.certification-item:nth-child(2) {
    animation-delay: 0.2s;
}

    .certification-item:hover {
        transform: translateY(-10px) translateX(5px) scale(1.02);
        box-shadow: var(--shadow-xl);
        border-left-width: 6px;
    }

    @media (max-width: 768px) {
        .certification-item:hover {
            transform: translateY(-5px) scale(1.01);
        }
    }

.certification-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.certification-icon svg {
    width: 24px;
    height: 24px;
}

.certification-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   Resume Download Button
   ======================================== */
.resume-download {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.resume-download .btn {
    margin: 0;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

    .contact-item:hover .contact-icon {
        transform: scale(1.2) rotate(360deg);
        animation: pulse 0.6s ease;
    }

    @media (max-width: 768px) {
        .contact-item:hover .contact-icon {
            transform: scale(1.1) rotate(180deg);
            animation: none;
        }
    }

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

    .form-group input:hover,
    .form-group textarea:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
    }

    @media (max-width: 768px) {
        .form-group input:hover,
        .form-group textarea:hover {
            transform: none;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            transform: none;
        }
    }

.form-group textarea {
    resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom .location {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet Breakpoint (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .name {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr 1.3fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-content {
        width: 48%;
    }
}

/* Mobile Breakpoint (≤768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 0.5rem;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: var(--transition);
    }

    .nav-link:active {
        background: var(--bg-light);
        transform: scale(0.98);
    }

    .hero-logo-image {
        height: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        margin-bottom: 1rem;
    }

    .about-text {
        text-align: center;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .skills-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-icon-item {
        min-height: 44px;
        padding: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        margin-bottom: 2rem;
    }

    .contact-form {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        transform: none;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .education-icon {
        margin: 0 auto 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .about,
    .experience,
    .education,
    .skills,
    .projects,
    .certifications,
    .contact {
        padding: 3rem 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-item {
        padding: 1.5rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certification-item {
        padding: 1.5rem;
    }

    .hero {
        background-attachment: scroll;
        padding-top: 70px;
        min-height: 100vh;
    }

    .hero::after {
        animation: none;
    }

    .hero-content .greeting,
    .hero-content .name,
    .hero-content .hero-subtitle,
    .hero-content .hero-description,
    .hero-content .hero-buttons {
        animation-duration: 0.5s;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .scroll-indicator {
        order: 3;
        margin: 1rem 0 0 0;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
        padding: 1rem 2rem;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .hero-logo-image {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-section ul {
        align-items: center;
    }

    .social-links {
        align-items: center;
    }

    .footer-links {
        align-items: center;
    }

    .container {
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .timeline-content h3,
    .project-item h3,
    .certification-item h3 {
        font-size: 1.3rem;
    }

    .education-details h3 {
        font-size: 1.3rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .about,
    .experience,
    .education,
    .skills,
    .projects,
    .certifications,
    .contact {
        padding: 2.5rem 0;
    }
}

