/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a192f;
    color: #e6f1ff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: #64ffda;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e6f1ff;
    text-decoration: none;
}

.logo span {
    color: #64ffda;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #64ffda;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #64ffda;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64ffda;
}

/* Hero */
.hero {
    padding-top: 150px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.greeting {
    display: block;
    font-size: 2rem;
    color: #ccd6f6;
}

.name {
    color: #64ffda;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #8892b0;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #a8b2d1;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #64ffda;
    color: #0a192f;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    border-color: #64ffda;
    color: #64ffda;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(100, 255, 218, 0.1);
}

.hero-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#profile-pic {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border: 2px solid #64ffda;
    border-radius: 50%;
    opacity: 0.3;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: -20px;
    right: -20px;
}

.shape-2 {
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: -30px;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: -40px;
    right: 10px;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #a8b2d1;
}

.about-text strong {
    color: #64ffda;
}

.about-status {
    margin-top: 30px;
    padding: 20px;
    background: rgba(100, 255, 218, 0.05);
    border-left: 4px solid #64ffda;
    border-radius: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 10px;
}

.pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #64ffda;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.status-note {
    font-size: 0.9rem;
    color: #8892b0;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: rgba(100, 255, 218, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    color: #64ffda;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: #ccd6f6;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Projects - UPDATED */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #e6f1ff;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-content p {
    color: #a8b2d1;
    line-height: 1.7;
}

.project-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-small {
    background: #64ffda;
    color: #0a192f;
    border: none;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.btn-outline-small {
    padding: 10px 22px;
    font-size: 0.9rem;
    border: 2px solid #64ffda;
    color: #64ffda;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-outline-small:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #64ffda;
}

.response-promise {
    background: rgba(100, 255, 218, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: #ccd6f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.response-promise i {
    color: #64ffda;
}

.direct-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.direct-btn {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.direct-btn i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.direct-btn span {
    flex-grow: 1;
}

.email {
    background: #ea4335;
}

.email:hover {
    background: #d33a2c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(234, 67, 53, 0.3);
}

.whatsapp {
    background: #25d366;
}

.whatsapp:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.status-box {
    background: rgba(100, 255, 218, 0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #64ffda;
}

.status-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.status-header h4 {
    color: #64ffda;
}

.status-box p {
    margin-bottom: 10px;
    color: #ccd6f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-box i {
    color: #64ffda;
}

/* Form */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #8892b0;
    border-radius: 4px;
    color: #e6f1ff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #64ffda;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #64ffda;
    transition: width 0.4s;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #8892b0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-note i {
    color: #64ffda;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: #8892b0;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

.mobile-break {
    display: none;
}

@media (max-width: 420px) {
    .mobile-break {
        display: block;
    }
    
    .logo span {
        display: block;
        margin-top: -4px;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-image {
        min-width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(100, 255, 218, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    section {
        padding: 70px 0;
    }
    
    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .greeting {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn, .btn-small, .btn-outline-small {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons, .project-buttons {
        flex-direction: column;
    }
    
    .direct-btn {
        padding: 15px 20px;
    }
}

/* Fix Navbar Z-Index and Spacing */
.navbar {
    z-index: 1000;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Add padding to body to prevent navbar overlap */
body {
    padding-top: 80px; /* Adjust based on your navbar height */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Less padding on mobile */
    }
    
    /* Ensure navbar has proper background on mobile */
    .navbar {
        background: rgba(10, 25, 47, 0.98) !important;
        backdrop-filter: blur(10px);
        height: 70px;
        display: flex;
        align-items: center;
    }
    
    .navbar .container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Fix mobile menu positioning */
    .nav-links {
        position: fixed;
        top: 70px !important; /* Start right below navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 25, 47, 0.98);
        flex-direction: column;
        padding-top: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    /* Fix hero section spacing */
    .hero {
        padding-top: 30px !important; /* Reduced padding since body has padding-top */
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .container {
        padding: 0 15px;
    }
}