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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #4ecdc4 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    --shadow-primary: 0 10px 30px rgba(0, 212, 255, 0.3);
    --shadow-secondary: 0 5px 15px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    cursor: pointer;
}

.nav-logo-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding: 0 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    padding-left: 40px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-greeting {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideInLeft 1s ease 0.5s forwards;
}

.hero-name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    opacity: 0;
    animation: slideInUp 1s ease 1s forwards, textGlow 3s ease-in-out 2s infinite;
    cursor: default;
    transition: var(--transition);
}

.hero-name:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.hero-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: var(--accent-color);
    font-style: italic;
    opacity: 0;
    animation: slideInRight 1s ease 1.5s forwards;
    position: relative;
}

.hero-tagline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    animation: expandLine 2s ease 2s forwards;
}

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

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Profile Card */
.profile-card {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.profile-avatar {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--bg-primary);
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.profile-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    animation: rotate 3s linear infinite;
}

.profile-avatar i {
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary-color);
}

.department-photo {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    text-align: center;
}

.dept-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.dept-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--bg-primary);
    font-size: 3rem;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.image-placeholder p {
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    border: 2px solid rgba(0, 212, 255, 0.3);
    z-index: 5;
}

.floating-icon:nth-child(1) {
    top: 20%;
    right: 10%;
}

.floating-icon:nth-child(2) {
    bottom: 30%;
    left: 5%;
}

.floating-icon:nth-child(3) {
    top: 60%;
    right: 20%;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.education h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.education-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.education-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.education-item h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.education-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Code Window */
.code-window {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
    background: var(--bg-primary);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28ca42;
}

.window-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-line {
    margin-bottom: 8px;
}

.keyword {
    color: #ff79c6;
}

.class-name {
    color: #8be9fd;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

/* Skills Section */
.skills {
    padding: 120px 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

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

.skill-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bg-primary);
    margin: 0 auto 20px;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.skill-level {
    background: var(--bg-tertiary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.project-placeholder {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

.project-cta {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-cta:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-primary);
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg-primary);
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-muted);
}

.form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    display: block;
}

.form-status.error {
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    display: block;
}

.form-status.loading {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: block;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(0, 212, 255, 0.5),
            0 0 10px rgba(0, 212, 255, 0.3),
            0 0 15px rgba(0, 212, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 30px rgba(0, 212, 255, 0.4);
    }
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 30px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-left: 0;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .department-photo {
        padding: 20px;
    }
    
    .dept-image {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 2.5rem;
    }

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

    .about-stats {
        justify-content: center;
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        padding: 15px 30px;
        font-size: 1rem;
        width: 200px;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .hero-role {
        font-size: 1rem;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .hero-buttons {
        gap: 12px;
        margin-top: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 180px;
        border-radius: 25px;
    }
    
    .dept-image {
        width: 200px;
        height: 200px;
        border-width: 2px;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 2rem;
    }
    
    .department-photo {
        padding: 15px;
        margin: 0 auto;
        max-width: 250px;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .skill-card {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .project-card {
        margin: 0 10px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .contact-item {
        padding: 20px 15px;
        margin: 0 10px 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .form {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo .logo-text {
        font-size: 20px;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        margin: 20px 0;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .education-item {
        padding: 15px;
        margin: 0 10px;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

    .hero-tagline {
        font-size: 1rem;
    }

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

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

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

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

    .profile-avatar {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}/
* Mobile-First Enhancements */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .dept-image, .image-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .btn {
        width: 160px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .nav-link {
        padding: 15px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .project-card:hover {
        transform: none;
    }
    
    .skill-card:hover {
        transform: none;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    
    .hero {
        scroll-margin-top: 80px;
    }
    
    section {
        scroll-margin-top: 80px;
    }
}
/* ==
=== ADVANCED WALKING ROBOT STYLES ===== */
.advanced-robot {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 25px 50px rgba(0, 255, 255, 0.4));
}

.robot-container {
    position: relative;
    transform-style: preserve-3d;
    animation: robotEntry 4s ease-out forwards, robotWalk 3s ease-in-out infinite 4s;
}

.robot-body {
    position: relative;
    transform-style: preserve-3d;
    scale: 0.9;
    transition: all 0.4s ease;
}

.advanced-robot:hover .robot-body {
    scale: 1.1;
    animation: robotExcited 0.8s ease-in-out;
}

/* Character Parts */
.character-head {
    position: relative;
    width: 64px;
    height: 64px;
    transform-style: preserve-3d;
    margin: 0 auto;
    animation: headBob 2s ease-in-out infinite;
}

.character-torso {
    position: relative;
    width: 64px;
    height: 96px;
    transform-style: preserve-3d;
    margin: 0 auto;
    margin-top: -8px;
}

.character-arm {
    position: absolute;
    width: 32px;
    height: 96px;
    transform-style: preserve-3d;
    top: 64px;
    animation: armSwing 3s ease-in-out infinite;
}

.left-arm {
    left: -40px;
    transform-origin: 50% 0%;
    animation-delay: 0s;
}

.right-arm {
    right: -40px;
    transform-origin: 50% 0%;
    animation-delay: 1.5s;
}

.character-leg {
    position: absolute;
    width: 32px;
    height: 96px;
    transform-style: preserve-3d;
    top: 152px;
    animation: legWalk 2s ease-in-out infinite;
}

.left-leg {
    left: 8px;
    transform-origin: 50% 0%;
    animation-delay: 0s;
}

.right-leg {
    right: 8px;
    transform-origin: 50% 0%;
    animation-delay: 1s;
}

/* Cube Faces */
.face {
    position: absolute;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border: 2px solid #654321;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Head Faces */
.character-head .face.front {
    width: 64px;
    height: 64px;
    transform: translateZ(32px);
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-head .face.back {
    width: 64px;
    height: 64px;
    transform: translateZ(-32px) rotateY(180deg);
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
}

.character-head .face.left {
    width: 64px;
    height: 64px;
    transform: rotateY(-90deg) translateZ(32px);
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-head .face.right {
    width: 64px;
    height: 64px;
    transform: rotateY(90deg) translateZ(32px);
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-head .face.top {
    width: 64px;
    height: 64px;
    transform: rotateX(90deg) translateZ(32px);
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
}

.character-head .face.bottom {
    width: 64px;
    height: 64px;
    transform: rotateX(-90deg) translateZ(32px);
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

/* Face Features */
.eye {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    top: 20px;
    border-radius: 2px;
    animation: eyeBlink 4s ease-in-out infinite;
}

.left-eye {
    left: 16px;
}

.right-eye {
    right: 16px;
}

.mouth {
    position: absolute;
    width: 16px;
    height: 4px;
    background: #000;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Torso Faces */
.character-torso .face.front,
.character-torso .face.back {
    width: 64px;
    height: 96px;
    background: linear-gradient(135deg, #4169E1 0%, #0000FF 50%, #4169E1 100%);
    border-color: #191970;
}

.character-torso .face.front {
    transform: translateZ(16px);
}

.character-torso .face.back {
    transform: translateZ(-16px) rotateY(180deg);
}

.character-torso .face.left,
.character-torso .face.right {
    width: 32px;
    height: 96px;
    background: linear-gradient(135deg, #4169E1 0%, #0000FF 50%, #4169E1 100%);
    border-color: #191970;
}

.character-torso .face.left {
    transform: rotateY(-90deg) translateZ(16px);
}

.character-torso .face.right {
    transform: rotateY(90deg) translateZ(16px);
}

.character-torso .face.top,
.character-torso .face.bottom {
    width: 64px;
    height: 32px;
    background: linear-gradient(135deg, #4169E1 0%, #0000FF 50%, #4169E1 100%);
    border-color: #191970;
}

.character-torso .face.top {
    transform: rotateX(90deg) translateZ(48px);
}

.character-torso .face.bottom {
    transform: rotateX(-90deg) translateZ(48px);
}

/* Arm Faces */
.character-arm .face.front,
.character-arm .face.back {
    width: 32px;
    height: 96px;
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-arm .face.front {
    transform: translateZ(16px);
}

.character-arm .face.back {
    transform: translateZ(-16px) rotateY(180deg);
}

.character-arm .face.left,
.character-arm .face.right {
    width: 32px;
    height: 96px;
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-arm .face.left {
    transform: rotateY(-90deg) translateZ(16px);
}

.character-arm .face.right {
    transform: rotateY(90deg) translateZ(16px);
}

.character-arm .face.top,
.character-arm .face.bottom {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FDBCB4 0%, #F4A460 50%, #FDBCB4 100%);
    border-color: #DEB887;
}

.character-arm .face.top {
    transform: rotateX(90deg) translateZ(48px);
}

.character-arm .face.bottom {
    transform: rotateX(-90deg) translateZ(48px);
}

/* Leg Faces */
.character-leg .face.front,
.character-leg .face.back {
    width: 32px;
    height: 96px;
    background: linear-gradient(135deg, #000080 0%, #191970 50%, #000080 100%);
    border-color: #000040;
}

.character-leg .face.front {
    transform: translateZ(16px);
}

.character-leg .face.back {
    transform: translateZ(-16px) rotateY(180deg);
}

.character-leg .face.left,
.character-leg .face.right {
    width: 32px;
    height: 96px;
    background: linear-gradient(135deg, #000080 0%, #191970 50%, #000080 100%);
    border-color: #000040;
}

.character-leg .face.left {
    transform: rotateY(-90deg) translateZ(16px);
}

.character-leg .face.right {
    transform: rotateY(90deg) translateZ(16px);
}

.character-leg .face.top,
.character-leg .face.bottom {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #000080 0%, #191970 50%, #000080 100%);
    border-color: #000040;
}

.character-leg .face.top {
    transform: rotateX(90deg) translateZ(48px);
}

.character-leg .face.bottom {
    transform: rotateX(-90deg) translateZ(48px);
}

/* Particle System */
.particle-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700;
}

.particle:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
    background: #FF6B6B;
    box-shadow: 0 0 10px #FF6B6B;
}

.particle:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 1s;
    background: #4ECDC4;
    box-shadow: 0 0 10px #4ECDC4;
}

.particle:nth-child(4) {
    bottom: 35%;
    right: 10%;
    animation-delay: 1.5s;
    background: #45B7D1;
    box-shadow: 0 0 10px #45B7D1;
}

.particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 2s;
    background: #96CEB4;
    box-shadow: 0 0 10px #96CEB4;
}

.particle:nth-child(6) {
    top: 60%;
    right: 5%;
    animation-delay: 2.5s;
    background: #FFEAA7;
    box-shadow: 0 0 10px #FFEAA7;
}

.particle:nth-child(7) {
    top: 10%;
    left: 50%;
    animation-delay: 3s;
    background: #DDA0DD;
    box-shadow: 0 0 10px #DDA0DD;
}

.particle:nth-child(8) {
    bottom: 10%;
    left: 50%;
    animation-delay: 3.5s;
    background: #98D8C8;
    box-shadow: 0 0 10px #98D8C8;
}

/* Magic Aura */
.magic-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, rgba(78, 205, 196, 0.05) 50%, transparent 100%);
    animation: auraGlow 4s ease-in-out infinite;
    pointer-events: none;
}

/* Character Shadow */
.character-shadow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadowPulse 2s ease-in-out infinite;
}

/* Character Tooltip */
.character-tooltip {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.minecraft-character:hover .character-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.tooltip-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--primary-color);
}

.tooltip-content p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #ccc;
}

.tooltip-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #4ECDC4;
}

/* ===== MINECRAFT CHARACTER ANIMATIONS ===== */

@keyframes characterEntry {
    0% {
        transform: scale(0) rotateY(0deg) translateY(-200px);
        opacity: 0;
        filter: blur(10px);
    }
    30% {
        transform: scale(0.5) rotateY(180deg) translateY(-100px);
        opacity: 0.5;
        filter: blur(5px);
    }
    60% {
        transform: scale(1.2) rotateY(360deg) translateY(20px);
        opacity: 0.8;
        filter: blur(2px);
    }
    80% {
        transform: scale(0.9) rotateY(360deg) translateY(-10px);
        opacity: 0.9;
        filter: blur(1px);
    }
    100% {
        transform: scale(1) rotateY(360deg) translateY(0px);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes characterFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) rotateY(5deg);
    }
    50% {
        transform: translateY(-10px) rotateY(0deg);
    }
    75% {
        transform: translateY(-20px) rotateY(-5deg);
    }
}

@keyframes characterExcited {
    0%, 100% {
        transform: scale(1) rotateZ(0deg);
    }
    25% {
        transform: scale(1.1) rotateZ(2deg);
    }
    50% {
        transform: scale(1.05) rotateZ(0deg);
    }
    75% {
        transform: scale(1.1) rotateZ(-2deg);
    }
}

@keyframes headBob {
    0%, 100% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(5deg) rotateY(2deg);
    }
    50% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    75% {
        transform: rotateX(-5deg) rotateY(-2deg);
    }
}

@keyframes armSwing {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(20deg);
    }
}

@keyframes legWalk {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(15deg);
    }
}

@keyframes eyeBlink {
    0%, 90%, 100% {
        height: 8px;
    }
    95% {
        height: 2px;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes auraGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

@keyframes shadowPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.5;
    }
}

/* Mouse Following Effect */
.minecraft-character.following {
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive Minecraft Character */
@media (max-width: 768px) {
    .minecraft-character {
        transform: translate(-50%, -50%) scale(0.7);
    }
    
    .character-tooltip {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .tooltip-content h3 {
        font-size: 14px;
    }
    
    .tooltip-content p {
        font-size: 10px;
    }
    
    .tooltip-stats {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .minecraft-character {
        transform: translate(-50%, -50%) scale(0.5);
    }
    
    .particle-system {
        width: 150px;
        height: 150px;
    }
    
    .magic-aura {
        width: 200px;
        height: 200px;
    }
}

/* Performance Optimizations */
.minecraft-character * {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Hide robot on very small screens to avoid clutter */
@media (max-width: 320px) {
    .advanced-robot {
        display: none;
    }
}