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

html {
    scroll-behavior: smooth;
}



/* Dark Mode Color Scheme as Default */
:root {
    --primary-purple: #a855f7;
    --secondary-purple: #c084fc;
    --tertiary-purple: #d8b4fe;
    --light-purple: #1f1b2e;
    --dark-purple: #8b5cf6;
    --accent-blue: #60a5fa;
    --gradient-primary: linear-gradient(135deg, #a855f7, #60a5fa);
    --gradient-secondary: linear-gradient(135deg, #c084fc, #22d3ee);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 50%, #312e81 100%);
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --bg-light: #0f0f23;
    --white: #1e1b4b;
    --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    --shadow-colored: 0 10px 30px rgba(168, 85, 247, 0.3);
}

/* Set dark mode as default */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #0f172a;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    background-color: #0f172a;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: none;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    padding: 0.5rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    position: relative;
}

.nav-logo {
    flex: 0 0 auto;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.nav-logo a:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.5));
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}



.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    padding-top: 70px;
    transition: background 0.3s ease;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 45, 85, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    justify-self: start;
    max-width: 500px;
}

.hero-image {
    justify-self: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: flex-start;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* GitHub - Dark theme */
.social-icon[href*="github"] {
    background: rgba(36, 41, 46, 0.9);
    border-color: #24292e;
    color: #ffffff;
}

.social-icon[href*="github"]:hover {
    background: #24292e;
    border-color: #586069;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(36, 41, 46, 0.4);
}

/* LinkedIn - Blue */
.social-icon[href*="linkedin"] {
    background: rgba(10, 102, 194, 0.9);
    border-color: #0a66c2;
    color: #ffffff;
}

.social-icon[href*="linkedin"]:hover {
    background: #0a66c2;
    border-color: #004182;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.4);
}

/* Email - Orange/Red */
.social-icon[href*="mailto"] {
    background: rgba(234, 67, 53, 0.9);
    border-color: #ea4335;
    color: #ffffff;
}

.social-icon[href*="mailto"]:hover {
    background: #ea4335;
    border-color: #d33b2c;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(234, 67, 53, 0.4);
}

/* Facebook - Blue */
.social-icon[href*="facebook"], .social-icon[aria-label="Facebook"] {
    background: rgba(24, 119, 242, 0.9);
    border-color: #1877f2;
    color: #ffffff;
}

.social-icon[href*="facebook"]:hover, .social-icon[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #166fe5;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon i {
    transition: all 0.3s ease;
}

.social-icon:hover i {
    transform: scale(1.1);
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colored);
    border: none;
    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.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 45, 85, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: white;
    border-color: var(--secondary-purple);
    transform: translateY(-3px);
}



.profile-card {
    width: 400px;
    height: 400px;
    background: transparent;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(96, 165, 250, 0.1));
    border-radius: 30px;
    z-index: 1;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 35px 70px rgba(168, 85, 247, 0.3);
}

.profile-image {
    width: 280px;
    height: 280px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(135deg, #a855f7, #60a5fa) border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4), inset 0 0 0 4px rgba(15, 15, 35, 0.8);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.5), inset 0 0 0 4px rgba(15, 15, 35, 0.9);
}

.profile-image i {
    font-size: 4rem;
    color: var(--primary-purple);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.05);
}

.profile-photo:hover {
    transform: scale(1.02);
    filter: brightness(1.2) contrast(1.1);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    color: var(--primary-purple);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-red);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

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

.skills-category:nth-child(4) {
    grid-column: auto;
}

.skills-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(168, 85, 247, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.skills-category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    transition: all 0.3s ease;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.skills-list li::before {
    content: '▸';
    color: var(--primary-purple);
    font-weight: bold;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.skills-list li:hover::before {
    color: var(--secondary-purple);
    transform: scale(1.2);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 0;
}

/* Collapsible Timeline Items */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.timeline-toggle {
    background: var(--primary-purple);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.timeline-toggle:hover {
    background: var(--secondary-purple);
    transform: scale(1.1);
}

.timeline-toggle.active {
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-details.active {
    max-height: 1000px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-purple);
    border: 4px solid #0f172a;
    top: 15px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px var(--primary-purple);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--white);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(220, 38, 38, 0.1);
    transition: background 0.3s ease;
}

.timeline-date {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-institution {
    color: var(--secondary-purple);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-highlights {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-purple);
}

.timeline-highlights h4 {
    color: var(--primary-purple);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-highlights ul {
    list-style: none;
    padding: 0;
}

.timeline-highlights li {
    color: var(--text-light);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-purple);
    font-weight: bold;
}

.skill-tag {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.project-image {
    height: 180px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    transition: all 0.3s ease;
    display: none; /* Initially hidden, shown by JavaScript if valid */
}

.project-icon-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-image::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: left 0.6s ease;
    z-index: 4;
}

.project-card:hover .project-image::before {
    left: 100%;
}

.project-icon-fallback i {
    font-size: 2.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon-fallback i {
    transform: scale(1.1);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
}

.project-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    min-height: 4.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.project-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    flex: 1;
    justify-content: center;
}

.project-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.project-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(2px);
}

.demo-link {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.demo-link:hover {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    margin-bottom: 2rem;
}

.contact-intro h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-intro p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-methods {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(139, 92, 246, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.contact-item:hover .contact-icon i {
    color: white;
}

.contact-details h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-note {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
}

.contact-cta {
    background: rgba(139, 92, 246, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.contact-cta h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.help-list li:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.help-list li i {
    color: var(--primary-purple);
    width: 16px;
    font-size: 0.9rem;
}

.contact-form-container {
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.contact-form:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #4b5563;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #374151;
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.contact-form .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.contact-form .btn i {
    transition: transform 0.3s ease;
}

.contact-form .btn:hover i {
    transform: translateX(3px);
}

/* Footer */
.footer {
    background: #0f172a;
    color: var(--text-light);
    padding: 3rem 0 1rem;
    transition: all 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: var(--text-light);
    transition: all 0.3s ease;
}

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

.achievement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.achievement-icon i {
    font-size: 2rem;
    color: var(--primary-purple);
}

.achievement-card:hover .achievement-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.achievement-card:hover .achievement-icon i {
    color: white;
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.achievement-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Blogs Section */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-image i {
    font-size: 3rem;
    color: white;
    z-index: 2;
    position: relative;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Publications Section */
.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}

.publication-icon {
    width: 60px;
    height: 60px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.publication-icon i {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

.publication-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: var(--primary-purple);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.publication-details {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.publication-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-year,
.publication-type {
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .profile-card {
        width: 350px;
        height: 350px;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-category:nth-child(4) {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        background: rgba(139, 92, 246, 0.15);
        padding: 10px;
        border-radius: 6px;
        border: 1px solid rgba(139, 92, 246, 0.3);
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(139, 92, 246, 0.25);
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
        background: white;
        margin: 2.5px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    /* Mobile menu backdrop */
    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: #1e293b;
        width: 280px;
        height: 100vh;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 80px 0 20px 0;
        z-index: 999;
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 18px 30px;
        display: block;
        margin: 0;
        font-size: 1.1rem;
        color: #e2e8f0;
        font-weight: 500;
        border-radius: 0;
        background: transparent;
        transition: all 0.3s ease;
        border-bottom: 1px solid #334155;
        width: 100%;
        text-align: left;
        text-decoration: none;
    }
    
    .nav-menu a:hover {
        background: #2d3748;
        color: #a855f7;
        transform: none;
        box-shadow: none;
        padding-left: 40px;
    }
    
    .nav-menu a.active {
        background: #3730a3;
        color: white;
        border-left: 4px solid #a855f7;
        box-shadow: none;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .navbar.scrolled .logo-img {
        height: 45px;
    }
    
    .nav-container {
        min-height: 60px;
        padding: 0 20px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.4rem 0;
    }
    

    
    .hero {
        padding-top: 70px;
        min-height: 100vh;
    }
    
    .hero-container {
        min-height: calc(100vh - 70px);
        padding: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .profile-card {
        width: 320px;
        height: 320px;
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
         .skills-container {
         grid-template-columns: 1fr;
         gap: 1.5rem;
         max-width: 100%;
         padding: 0 1rem;
     }
     
     .skills-category {
         padding: 1.5rem;
         width: 100%;
         box-sizing: border-box;
         margin: 0;
     }
     
     .skills-category:nth-child(4) {
         grid-column: 1;
         max-width: 100%;
         margin: 0;
     }
     
     .skills-category h3 {
         font-size: 1.2rem;
         margin-bottom: 1rem;
     }
     
     .skills-list li {
         font-size: 0.95rem;
         padding: 0.4rem 0;
     }
    
    .timeline::after {
        left: 31px;
        background: white;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timeline-header h3 {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .timeline-toggle {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    
    .timeline-marker {
        left: 21px !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        min-height: auto;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.2rem;
        min-height: auto;
    }
    
    .project-content p {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .project-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-intro h3 {
        font-size: 1.3rem;
    }
    
    .contact-intro p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 1.1rem;
    }
    
    .help-list li {
        font-size: 0.9rem;
    }
    
    .contact-cta {
        padding: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .hero-social {
        justify-content: center;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero-container {
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .navbar.scrolled .logo-img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-card {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .skills-category {
        padding: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .profile-card {
        width: 220px;
        height: 220px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .container {
        padding: 0 8px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skills list animation classes */
.skills-list li.animate-in {
    animation: slideInLeft 0.5s ease forwards;
}

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