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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #08162a;
    color: white;
}

/* Navigation Bar */ 
nav {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background: #0a192f;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #8892b0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00f5ff;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: 3rem;                
    padding-top: 4rem;
    padding-left: 5%;
    padding-right: 5%;
    min-height: 95vh;
    max-width: 1200px;        
    margin: 0 auto;           
}

.hero-content {
    flex: 0 1 auto;           
    max-width: 500px;         
    text-align: left;        
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #8892b0;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hero-content h2 span {
    color: #00f5ff;
}

.hero-content p {
    color: #8892b0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

/* RECTANGLE IMAGE BOX */
.profile-box {
    padding: 5px;
    background: linear-gradient(45deg, #88dfff, #7b00ff, #001aff);
    border-radius: 20px;
    width: 340px;
    height: 440px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-rect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 2px solid #00f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #0800fe;
    transform: translateY(-3px);
}


@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 60px rgba(0, 245, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 80px rgba(0, 245, 255, 0.8);
    }
}

.profile-img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.img-placeholder {
    width: 90%;
    height: 90%;
    background: #1e3a5f;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Hero Section Animations */
.hero-content h3 {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.hero-content h3.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
    transition-delay: 0.2s;
}

.hero-content h1.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-content h2 {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
    transition-delay: 0.4s;
}

.hero-content h2.animate {
    opacity: 1;
    transform: translateX(0);
}

.hero-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.6s;
}

.hero-content p.animate {
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    opacity: 0;
    animation: fadeInScale 0.5s ease forwards;
}

.social-icon.animate {
    animation: fadeInScale 0.5s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.social-icon:nth-child(1) { animation-delay: 0.8s; }
.social-icon:nth-child(2) { animation-delay: 0.9s; }
.social-icon:nth-child(3) { animation-delay: 1s; }
.social-icon:nth-child(4) { animation-delay: 1.1s; }

.hero-image {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
    transition: all 1s ease;
    transition-delay: 0.3s;
}

.hero-image.animate {
    opacity: 1;
    transform: scale(1) rotate(0deg);
} 

/* About Section */
.about {
    padding: 5rem 5%;
    background: #0a192f;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-container {
    max-width: 900px;
    margin: auto;
}

.about-content {
    background: #112240;
    padding: 3rem;
    border-radius: 10px;
    border-left: 4px solid #00f5ff;
    border-right: 4px solid #00f5ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.about-content p {
    color: #8892b0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about .section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.about .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    transition-delay: 0.2s;
}

.about-content.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Skills Section */
.skills {
    padding: 5rem 5%;
    background: #08162a;
    min-height: 80vh; 
    justify-content: center
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #00f5ff;
}

.skills-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skill-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-info {
    flex: 1;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.skill-top h3 {
    font-size: 1.1rem;
    margin: 0;
}

.skill-top span {
    font-size: 0.9rem;
    color: #8892b0;
}

.bar {
    width: 100%;
    height: 12px;
    background: #1e3a5f;
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #00f5ff, #0066ff);
    border-radius: 10px;
    animation: load 2s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.8);
}

@keyframes load {
    from {
        width: 0;
    }
}

.skills .section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.skills .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-card {
    opacity: 0;
    transition: all 0.6s ease;
}

.skill-card:nth-child(odd) {
    transform: translateX(-50px);
}

.skill-card:nth-child(even) {
    transform: translateX(50px);
}

.skill-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }
.skill-card:nth-child(5) { transition-delay: 0.5s; }
.skill-card:nth-child(6) { transition-delay: 0.6s; }
.skill-card:nth-child(7) { transition-delay: 0.7s; }
.skill-card:nth-child(8) { transition-delay: 0.8s; }

/* Projects Section */
.projects {
    padding: 5rem 5%;
    background: #0a192f;
    min-height: 80vh;
}

.projects-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #112240;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #00f5ff;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.project-content p {
    color: #8892b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-link,
.video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    box-sizing: border-box;
    padding: 0 1.5rem;
    text-decoration: none;
    border: 2px solid #00f5ff;
    border-radius: 5px;
    transition: all 0.3s;
    background: transparent;
    color: #00f5ff;
    vertical-align: middle;
    line-height: 1;
}

.project-link {
    font-weight: 600;
    font-size: 0.9rem;
}

.video-link {
    font-size: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-weight: 700;
}

.project-link:hover,
.video-link:hover {
    background: #00f5ff;
    color: #0a192f;
}

.projects .section-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.projects .section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.7s ease;
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.3s; }
.project-card:nth-child(3) { transition-delay: 0.5s; }

/* Footer Section */
.footer {
    background: #0a192f;
    padding: 0rem;
    border-top: 2px solid #8892b0;
    text-align: center;
}

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

.footer-container p {
    color: #8892b0;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}


/* ============================================
   RESPONSIVE DESIGN - IMPROVED
   ============================================ */

/* Tablet and below */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hexagon-container {
        width: 300px;
        height: 300px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 3%;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 5rem;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }

    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon img {
        width: 60px;
        height: 60px;
    }

    .hexagon-container {
        width: 250px;
        height: 250px;
    }
    
    .img-placeholder {
        font-size: 3rem;
    }
    
    .about {
        padding: 3rem 3%;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .skills {
        padding: 3rem 3%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects {
        padding: 3rem 3%;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-links {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
    }
    
    .hexagon-container {
        width: 200px;
        height: 200px;
    }
    
    .img-placeholder {
        font-size: 2.5rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon img {
        width: 50px;
        height: 50px;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skill-icon {
        width: 40px;
        height: 40px;
    }
    
    .skill-top h3 {
        font-size: 1rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 3%;
    }
    
    .footer-container p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-container p {
        font-size: 0.8rem;
    }
}