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

/* Favicon styling - for browsers that support it */
link[rel="icon"] {
    border-radius: 50%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: auto;
}

/* Ensure normal cursor behavior */
* {
    cursor: inherit;
}

a, button, .btn, input[type="submit"], input[type="button"] {
    cursor: pointer;
}

input, textarea, select {
    cursor: text;
}

p, span, div, h1, h2, h3, h4, h5, h6 {
    cursor: default;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #000000 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Force navbar to never change - override any potential conflicts */
.navbar,
.navbar.scrolled,
.navbar.active,
.navbar:hover,
.navbar:focus,
.navbar.navbar-scrolled {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #000000 100%) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Navigation Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

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

.nav-logo h2 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #000000 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
    hyphens: auto;
}

.highlight {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    word-wrap: break-word;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s both;
    word-wrap: break-word;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2d2d2d;
    color: #ffffff;
    border: 2px solid #2d2d2d;
}

.btn-primary:hover {
    background: #404040;
    border-color: #404040;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(64, 64, 64, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    padding: 10px;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-circle i {
    color: rgba(255, 255, 255, 0.7);
}

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

.scroll-indicator i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #333333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #dd0000;
    border-radius: 2px;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 45% 45%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 3px,
            rgba(139, 111, 78, 0.015) 3px,
            rgba(139, 111, 78, 0.015) 6px
        );
    pointer-events: none;
    z-index: 1;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666666;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

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

.stat-item h3 {
    font-size: 2rem;
    color: #dd0000;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-item p {
    color: #666666;
    font-weight: 500;
}

/* Skills Section */
#skills {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 60%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 111, 78, 0.02) 2px,
            rgba(139, 111, 78, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

#skills .container {
    position: relative;
    z-index: 2;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0.05) 50%, 
                rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.skill-category > * {
    position: relative;
    z-index: 2;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.skill-category h3 {
    text-align: center;
    color: #dd0000;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.skill-item:hover {
    background: #dd0000;
    color: white;
    transform: scale(1.05);
}

.skill-item i {
    font-size: 2rem;
    color: #dd0000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.skill-item:hover i {
    color: white;
}

.skill-item span {
    font-weight: 500;
    text-align: center;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 75% 25%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 25% 75%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 55% 65%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            -30deg,
            transparent,
            transparent 4px,
            rgba(139, 111, 78, 0.02) 4px,
            rgba(139, 111, 78, 0.02) 8px
        );
    pointer-events: none;
    z-index: 1;
}

.education .container {
    position: relative;
    z-index: 2;
}

.education-timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dd0000;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dd0000;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #dd0000;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.timeline-content > * {
    position: relative;
    z-index: 2;
}

.timeline-content h3 {
    color: #dd0000;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: #666666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.timeline-date {
    color: #dd0000;
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666666;
    line-height: 1.6;
}

/* Projects Section */
#projects {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 60% 40%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(139, 111, 78, 0.02) 3px,
            rgba(139, 111, 78, 0.02) 6px
        );
    pointer-events: none;
    z-index: 1;
}

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

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-card > * {
    position: relative;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #dd0000 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: #333333;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project-content p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    color: #dd0000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* YouTube Section */
.youtube {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    overflow: hidden;
}

.youtube::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 30%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 2px,
            rgba(139, 111, 78, 0.02) 2px,
            rgba(139, 111, 78, 0.02) 5px
        );
    pointer-events: none;
    z-index: 1;
}

.youtube .container {
    position: relative;
    z-index: 2;
}

.youtube-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.youtube-info {
    flex: 1;
}

.youtube-info h3 {
    color: #dd0000;
    font-size: 2rem;
    margin-bottom: 20px;
}

.youtube-info > p {
    color: #666666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.youtube-features {
    margin-bottom: 40px;
}

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

.feature i {
    font-size: 1.5rem;
    color: #dd0000;
    width: 30px;
}

.feature h4 {
    color: #333333;
    margin-bottom: 5px;
}

.feature p {
    color: #666666;
}

.btn-youtube {
    background: #ff0000;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.youtube-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.youtube-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.youtube-placeholder h4 {
    margin-top: 20px;
    font-size: 1.5rem;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f4f1e8 0%, #f7f3eb 30%, #f0ebe0 60%, #f4f1e8 100%);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(139, 111, 78, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(160, 130, 98, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(101, 85, 63, 0.04) 0%, transparent 30%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(139, 111, 78, 0.015) 4px,
            rgba(139, 111, 78, 0.015) 8px
        );
    pointer-events: none;
    z-index: 1;
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #dd0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: #333333;
    margin-bottom: 5px;
}

.contact-details p {
    color: #666666;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0.05) 50%,
                rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-form > * {
    position: relative;
    z-index: 2;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dd0000;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group textarea.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
    font-weight: 500;
    line-height: 1.4;
    padding: 5px 0;
    animation: fadeInError 0.3s ease-in-out;
}

.error-message.show {
    display: block;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #000000 100%);
    color: #ffffff;
    padding: 40px 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 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,0 1000,300 1000,0"/><polygon fill="rgba(255,255,255,0.02)" points="0,200 1000,0 0,0"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #dd0000;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(221, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #bb0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(221, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    border: 2px solid #f0f0f0;
}

.success-modal.show .success-content {
    transform: scale(1);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successPulse 0.6s ease-in-out;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.success-icon::before {
    content: '✓';
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    animation: checkmarkSlide 0.8s ease-out 0.2s both;
}

.success-content h3 {
    color: #22c55e;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    position: relative;
}

.success-content h3::before {
    content: '🏆';
    display: block;
    font-size: 3rem;
    margin: 0 auto 15px;
    animation: celebrationBounce 1s ease-in-out 0.2s both;
}

.success-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Success Animations */
@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkSlide {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Touch device optimizations */
.touch-device .skill-item:hover,
.touch-device .project-card:hover,
.touch-device .skill-category:hover {
    transform: none;
}

.touch-device .btn:hover {
    transform: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CLEAN MOBILE STYLES */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #ffffff;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #ffffff;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.9) 25%, rgba(45, 45, 45, 0.85) 50%, rgba(26, 26, 26, 0.9) 75%, rgba(0, 0, 0, 0.95) 100%);
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        padding: 100px 0 50px 0;
        overflow-y: auto;
        z-index: 1000;
        justify-content: flex-start;
        gap: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 20px 30px;
        display: block;
        font-size: 1.3rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin: 5px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
        color: #ffffff;
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-container {
        padding: 0 20px;
        height: 70px;
        position: relative;
        z-index: 1001;
    }
    
    .nav-logo h2 {
        font-size: 1.4rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        color: #ffffff;
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
        margin-top: 20px;
    }
    
    .hero-text {
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        word-wrap: break-word;
        hyphens: auto;
        margin-bottom: 15px;
    }

    /* YouTube Section - FIXED */
    .youtube-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    
    .youtube-info {
        order: 1;
        width: 100%;
        max-width: 600px;
        flex: none;
    }
    
    .youtube-visual {
        order: 2;
        width: 100%;
        flex: none;
    }
    
    .youtube-placeholder {
        width: 100%;
        max-width: 350px;
        height: 250px;
        margin: 0 auto;
    }
    
    .youtube-info h3 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .youtube-info > p {
        font-size: 1rem;
        text-align: center;
        line-height: 1.6;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .youtube-features {
        margin-bottom: 30px;
    }
    
    .feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
        padding: 20px;
        background: rgba(221, 0, 0, 0.05);
        border-radius: 15px;
        border: 2px solid rgba(221, 0, 0, 0.1);
    }
    
    .feature i {
        font-size: 1.8rem;
        color: #dd0000;
        width: auto;
        margin-bottom: 10px;
    }
    
    .feature h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
        color: #333;
        font-weight: 600;
    }
    
    .feature p {
        font-size: 0.9rem;
        color: #666;
        line-height: 1.4;
    }
    
    .btn-youtube {
        width: 100%;
        max-width: 250px;
        margin: 20px auto 0;
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    /* Contact Section - FIXED */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-info {
        order: 1;
        width: 100%;
    }
    
    .contact-form {
        order: 2;
        width: 100%;
        padding: 30px 20px;
        margin: 0;
    }
    
    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 25px;
        padding: 20px;
        background: rgba(221, 0, 0, 0.05);
        border-radius: 15px;
        border: 2px solid rgba(221, 0, 0, 0.1);
    }
    
    .contact-icon {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .contact-details h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .contact-details p {
        font-size: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .error-message {
        font-size: 0.8rem;
        margin-top: 6px;
        padding: 4px 0;
        line-height: 1.3;
    }
    
    .contact-form .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Other mobile adjustments */
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .profile-circle {
        width: 220px;
        height: 220px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 15px;
        width: 16px;
        height: 16px;
    }
    
    .education-timeline::before {
        left: 23px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Success Modal Mobile */
    .success-content {
        padding: 30px 20px;
        width: 95%;
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .success-checkmark {
        width: 60px;
        height: 60px;
        margin: 0 auto 15px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
    }
    
    .success-icon::before {
        font-size: 2rem;
    }
    
    .success-content h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .success-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-logo h2 {
        font-size: 1.2rem;
        max-width: 160px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .youtube-info h3 {
        font-size: 1.6rem;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    /* Form validation mobile styling */
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .error-message {
        font-size: 0.75rem;
        margin-top: 5px;
        padding: 3px 0;
    }
}

@media (max-width: 360px) {
    .nav-logo h2 {
        font-size: 1.1rem;
        max-width: 140px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .youtube-info h3 {
        font-size: 1.4rem;
    }
    
    /* Ultra small screen form styling */
    .contact-form {
        padding: 15px 10px;
        margin: 0 5px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .error-message {
        font-size: 0.7rem;
        margin-top: 4px;
        padding: 2px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact-form .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
