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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    overflow-x: hidden;
    background-color: #ffffff;
    min-width: 320px; /* Prevent layout breaking on very small screens */
    -webkit-text-size-adjust: 100%; /* Prevent iOS font scaling */
    -ms-text-size-adjust: 100%; /* Prevent Windows Phone font scaling */
}

/* Add subtle page loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 0.8s ease-out;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

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

.nav-logo a {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: #667eea;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #667eea;
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    background-size: cover;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-10%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(-15%, -10%); }
    90% { transform: translate(10%, 5%); }
}

/* Add floating elements for visual interest */
.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    min-height: 70vh;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: heroEntrance 1.2s ease-out 0.3s both;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.highlight {
    color: #f093fb;
    position: relative;
    background: linear-gradient(45deg, #f093fb, #f5f7fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.btn {
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    min-width: 180px;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e084f0, #f04458);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(240, 147, 251, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.95);
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
    border-color: rgba(255,255,255,1);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-placeholder img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: #2c3e50;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-profile {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
    max-width: 100%;
}

.about-image {
    position: relative;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    max-width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.about-image:hover img {
    transform: translateY(-5px);
}

.about-text {
    padding: 2rem 0;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: left;
}

.about-mission {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-weight: 500;
    font-style: italic;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    background: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Education Section */
.education {
    background: white;
    position: relative;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg, #e1e5e9, #e1e5e9);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.education-card.current::before {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.education-card.distinction::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.education-card.current {
    background: linear-gradient(135deg, #f8fff9, #f0fff4);
    border-color: #d4edda;
}

.education-card.distinction {
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
    border-color: #e3f2fd;
}

.education-card.distinction {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fffef8, #fff9e6);
}

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

.education-year {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.education-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.current-status {
    background: #28a745;
    color: white;
}

.distinction-status {
    background: #ffc107;
    color: #333;
}

.expected-status {
    background: #17a2b8;
    color: white;
}

.education-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.education-subtitle {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.education-institution {
    color: #666;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-description {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Awards Section */
.awards {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.awards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagons" width="30" height="30" patternUnits="userSpaceOnUse"><polygon points="15,5 25,10 25,20 15,25 5,20 5,10" fill="%23667eea" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagons)"/></svg>');
    pointer-events: none;
}

.awards .container {
    position: relative;
    z-index: 1;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.award-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #e1e5e9, #e1e5e9);
}

.award-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.award-card.featured::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.award-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #f0f4ff);
}

.award-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0) brightness(1.1);
}

.award-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.award-organization {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #667eea;
    font-size: 0.95rem;
}

.award-description {
    line-height: 1.7;
    color: #4a5568;
    font-size: 0.95rem;
}

/* Publications Section */
.publications {
    background: white;
}

.publication-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.publication-category h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.publication-item {
    background: #f8f9ff;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.publication-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.publication-details {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.publication-tags, .video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Videos Section */
.videos {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.videos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="video-pattern" width="35" height="35" patternUnits="userSpaceOnUse"><path d="M17.5,10 L25,17.5 L17.5,25 L10,17.5 Z" fill="%23667eea" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23video-pattern)"/></svg>');
    pointer-events: none;
}

.videos .container {
    position: relative;
    z-index: 1;
}

.video-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.video-intro p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 1rem;
}

.video-thumbnail iframe {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail iframe {
    transform: scale(1.02);
}

.video-content {
    padding: 2rem;
    padding-top: 1rem;
}

.video-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.video-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.video-tags .tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-content {
    padding: 2rem;
}

.video-content h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.video-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Achievements Section */
.achievements {
    background: white;
    position: relative;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="25" height="25" patternUnits="userSpaceOnUse"><polygon points="12.5,2 15.5,8.5 22.5,8.5 17,13 18.5,20 12.5,16 6.5,20 8,13 2.5,8.5 9.5,8.5" fill="%23667eea" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    pointer-events: none;
}

.achievements .container {
    position: relative;
    z-index: 1;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.achievement-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(0) brightness(1.1);
}

.achievement-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.achievement-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.achievement-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.metric {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="diamonds" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,10 10,18 2,10" fill="%23667eea" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23diamonds)"/></svg>');
    pointer-events: none;
}

.skills .container {
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

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

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.skill-category p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Projects Section */
.projects {
    background: white;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="project-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><rect x="20" y="20" width="15" height="15" fill="%23667eea" opacity="0.03" rx="2"/></pattern></defs><rect width="100" height="100" fill="url(%23project-pattern)"/></svg>');
    pointer-events: none;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 2.5rem;
    padding-top: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.project-content p {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e1f5fe;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #667eea;
    background: transparent;
}

.project-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0,20 Q10,10 20,20 T40,20" stroke="%23667eea" stroke-width="0.5" fill="none" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>');
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.contact-info p {
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.contact-method strong {
    color: #2c3e50;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-method a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #764ba2;
}

.contact-form {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f3f4;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .hero-description {
        font-size: 1.3rem;
        max-width: 700px;
    }

    .btn {
        padding: 16px 38px;
        min-width: 160px;
    }

    .about-profile {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 280px;
    }
    
    .about-image img {
        height: 350px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }

    .hero-container {
        padding: 2rem 20px;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        padding: 16px 35px;
        font-size: 1rem;
        min-width: 250px;
    }

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

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

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

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

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

    .about-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image img {
        height: 300px;
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        display: block;
    }

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

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

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

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

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

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

    .achievement-metrics {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }

    .achievement-metrics {
        flex-direction: column;
        align-items: center;
    }

    .video-content, .achievement-card, .award-card {
        padding: 1.5rem;
    }

    .about-highlight {
        font-size: 1.1rem;
    }

    .education-card {
        padding: 1.5rem;
    }
}

/* Additional CSS to prevent scaling issues on custom domains */
/* Force proper image sizing and prevent browser zoom issues */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent text size adjustments in mobile browsers */
html {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
}

/* Fix potential viewport issues */
@viewport {
    width: device-width;
    initial-scale: 1.0;
    maximum-scale: 1.0;
    user-scalable: no;
}

/* Ensure consistent box model */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Fix iOS Safari viewport units */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Prevent horizontal overflow */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Force container max-widths to be respected */
.container, .nav-container, .hero-container {
    max-width: 100% !important;
    overflow: hidden;
}

/* Additional profile image fixes for custom domains */
.about-image img {
    max-width: 320px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}
