/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d0d0d; /* Slightly darker base */
    --secondary-color: #1c1c1c; /* Darker secondary */
    --accent-color: #00bcd4; /* A vibrant teal for accent */
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --gradient-primary: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%); /* Deeper, more defined gradient */
    --gradient-secondary: linear-gradient(145deg, #2a2a2a 0%, #1c1c1c 100%); /* Complementary gradient */
    --shadow-light: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.35); /* More pronounced shadow */
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.5); /* Deepest shadow */
    --border-radius: 16px; /* Slightly larger rounded corners */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Slightly more padding */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.98); /* Use primary color with transparency */
    backdrop-filter: blur(15px); /* Stronger blur */
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.99);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Taller navbar */
}

.nav-logo span {
    font-size: 28px; /* Larger logo */
    font-weight: 900;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5); /* Glow effect */
}

.nav-menu {
    display: flex;
    gap: 40px; /* More spacing */
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px; /* Closer to text */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px; /* Thicker underline */
    background: var(--accent-color);
    border-radius: 2px;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 30px; /* Larger hamburger icon */
    height: 4px;
    background: var(--accent-color);
    margin: 4px 0;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* More dynamic SVG background - subtle noise/pattern */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(0,188,212,0.05)"/><stop offset="100%" stop-color="rgba(0,188,212,0)"/></radialGradient></defs><circle cx="200" cy="200" r="120" fill="url(%23a)"/><circle cx="800" cy="300" r="180" fill="url(%23a)"/><circle cx="400" cy="700" r="150" fill="url(%23a)"/><circle cx="900" cy="800" r="100" fill="url(%23a)"/><circle cx="100" cy="500" r="90" fill="url(%23a)"/></svg>');
    background-size: cover;
    opacity: 0.7; /* Slightly more visible */
    animation: float 25s ease-in-out infinite alternate; /* Slower, smoother animation */
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-30px) rotate(5deg) scale(1.02); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Adjust ratio for text */
    gap: 80px; /* More space */
    align-items: center;
}

.hero-text {
    animation: fadeInSlideUp 1s ease-out forwards;
}

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

.hero-title {
    font-size: 4.2rem; /* Larger title */
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.typing-text {
    background: linear-gradient(45deg, var(--accent-color), #ffffff); /* Gradient for typing text */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: typing 3.5s steps(25) 1s forwards, blink-caret .75s step-end infinite; /* Slower typing, added caret blink */
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid var(--accent-color); /* The blinking caret */
    width: 0; /* Starts hidden for typing effect */
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

.hero-subtitle {
    font-size: 1.7rem; /* Larger subtitle */
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.15rem; /* Slightly larger description */
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 25px;
}

.btn {
    padding: 16px 32px; /* Larger buttons */
    border: none;
    border-radius: 12px; /* Slightly less rounded for buttons */
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
}

.btn-primary:hover {
    background: #00a8be; /* Slightly darker teal on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
}

.profile-card {
    background: var(--gradient-secondary);
    border-radius: var(--border-radius);
    padding: 50px; /* More padding */
    text-align: center;
    box-shadow: var(--shadow-heavy);
    animation: slideInRight 1.2s ease-out forwards;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 188, 212, 0.05) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


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

.profile-avatar {
    width: 140px; /* Larger avatar */
    height: 140px;
    background: linear-gradient(45deg, var(--accent-color), #00a8be); /* Gradient avatar */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3.5rem; /* Larger icon */
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6); /* Glow for avatar */
    position: relative;
    z-index: 1;
}

.profile-info h3 {
    font-size: 1.8rem; /* Larger name */
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

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

.scroll-arrow {
    width: 35px; /* Larger arrow */
    height: 35px;
    border: 3px solid var(--accent-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    opacity: 0.8;
}

/* Section Common Styles */
section {
    padding: 120px 0; /* More vertical padding */
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 3.2rem; /* Larger section titles */
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px; /* More space below title */
    position: relative;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Lower underline */
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Wider underline */
    height: 5px; /* Thicker underline */
    background: var(--accent-color);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.7); /* Glow for underline */
}

/* About Section */
.about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 35px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.stat-item h3 {
    font-size: 3rem; /* Larger numbers */
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Wider columns */
    gap: 35px; /* More spacing */
}

.skill-category {
    background: var(--gradient-secondary);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.skill-header i {
    font-size: 1.8rem; /* Larger icon */
    color: var(--accent-color);
}

.skill-header h3 {
    font-size: 1.4rem; /* Larger header */
    font-weight: 700;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* More spacing between tags */
}

.skill-tag {
    background: rgba(255, 255, 255, 0.08); /* Darker background for tags */
    color: var(--text-secondary);
    padding: 10px 20px; /* Larger padding */
    border-radius: 25px; /* More rounded */
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.skill-tag i, .skill-tag svg {
    font-size: 1.1rem; /* Icon size within tag */
    color: var(--text-secondary); /* Default icon color */
    transition: var(--transition);
}

.skill-tag:hover i, .skill-tag:hover svg {
    color: var(--primary-color); /* Icon color on hover */
}

/* Experience Section */
.experience {
    background: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 900px; /* Wider timeline */
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%; /* Center the line */
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px; /* Thicker line */
    background: linear-gradient(to bottom, var(--accent-color), rgba(0, 188, 212, 0.2)); /* Gradient line */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px; /* More space between items */
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 80px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 25px; /* Larger marker */
    height: 25px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 5px solid var(--primary-color); /* Thicker border */
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.7); /* Glow */
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -12.5px; /* Adjust to center on line */
    left: auto;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -12.5px; /* Adjust to center on line */
    right: auto;
}

.timeline-content {
    background: var(--gradient-primary);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.timeline-header {
    margin-bottom: 20px;
}

.timeline-header h3 {
    font-size: 1.6rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
}

.timeline-date {
    background: rgba(0, 188, 212, 0.15); /* Accent-tinted background */
    color: var(--text-secondary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    margin-left: 15px;
    font-weight: 500;
}

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

.timeline-description li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px; /* More padding */
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
}

.timeline-description li::before {
    content: '•'; /* Simpler bullet */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    top: 2px;
}

/* Education Section */
.education-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--gradient-secondary);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    max-width: 900px;
    margin: 0 auto;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.education-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.education-icon {
    width: 90px; /* Larger icon */
    height: 90px;
    background: linear-gradient(45deg, var(--accent-color), #00a8be);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.education-content h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.education-institution {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.education-details {
    display: flex;
    gap: 25px;
}

.education-year,
.education-grade {
    background: rgba(0, 188, 212, 0.15);
    color: var(--text-secondary);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    background: var(--primary-color); /* Primary background for projects */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); /* Adjusted min-width */
    gap: 35px;
}

.project-card {
    background: var(--gradient-primary);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    color: var(--text-primary);
}

.project-link {
    color: var(--accent-color);
    font-size: 1.3rem; /* Larger icon */
    text-decoration: none;
    transition: var(--transition);
    margin-left: 15px;
}

.project-link:hover {
    transform: scale(1.3);
    color: #00e5ff; /* Brighter on hover */
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto; /* Push tags to bottom */
}

.project-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Research Section */
.research-card {
    display: flex;
    gap: 40px;
    background: var(--gradient-secondary);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    max-width: 1000px; /* Wider card */
    margin: 0 auto;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.research-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.research-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, var(--accent-color), #00a8be);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.research-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.research-journal {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.research-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.research-tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Certifications Section */
.certifications {
    background: var(--primary-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly wider min */
    gap: 35px;
}

.cert-card {
    background: var(--gradient-primary);
    padding: 45px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.cert-card i {
    font-size: 3.5rem; /* Larger icon */
    color: var(--accent-color);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.cert-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Achievements Section */
.achievements {
    background: var(--secondary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Wider min */
    gap: 35px;
}

.achievement-card {
    background: var(--gradient-secondary);
    padding: 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.achievement-icon {
    width: 70px; /* Larger icon */
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), #00a8be);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Adjust ratio for form */
    gap: 80px;
}

.contact-info h3 {
    font-size: 2.5rem; /* Larger heading */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 45px;
    line-height: 1.7;
}

.contact-items {
    margin-bottom: 45px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-item i {
    width: 25px; /* Larger icon */
    color: var(--accent-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

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

.social-link {
    width: 55px; /* Larger social links */
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.4rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
}

.contact-form {
    background: var(--gradient-primary);
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px; /* Larger padding */
    background: rgba(255, 255, 255, 0.08); /* Darker input background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px; /* Slightly less rounded than cards */
    color: var(--text-primary);
    font-size: 1.05rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 50px 0; /* More padding */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-text {
        order: 2; /* Text below image on smaller screens */
    }

    .hero-image {
        order: 1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .timeline::before {
        left: 25px; /* Move line to left */
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-right: 20px;
        padding-left: 80px;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 12.5px; /* Align marker to new line position */
        right: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .contact-items, .social-links {
        justify-content: center;
    }

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


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* Adjust for taller navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(13, 13, 13, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: var(--transition);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.3rem;
        margin: 25px 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .profile-card {
        padding: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        min-width: unset; /* Remove min-width constraint */
    }

    .education-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 35px;
    }

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

    .research-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 35px;
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

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

    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .profile-card {
        padding: 30px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 25px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .skill-category {
        padding: 25px;
    }

    .skill-tag {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 25px;
    }

    .education-card, .research-card, .project-card, .cert-card, .achievement-card {
        padding: 25px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-info h3 {
        font-size: 2rem;
    }

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

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

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

/* Animation Classes (kept existing, ensure they work with new styles) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out; /* Slower fade */
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}
.profile-avatar img {
    width: 100%; /* Make the image take the full width of its container */
    height: 100%; /* Make the image take the full height of its container */
    object-fit: cover; /* Ensures the image covers the area without stretching */
    border-radius: 50%; /* This is the key to making the image a circle */
}
.profile-avatar {
    width: 100px; /* Example size */
    height: 100px; /* Example size */
    /* Other styles like border, box-shadow etc. might be here */
}
.education-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.half-card {
    flex: 1;
    min-width: 280px;
}

.small-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.small-card .education-details {
    font-size: 0.9rem;
}
