
:root {
    --primary-color: #0A192F;
    --secondary-color: #8892B0;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --accent-color: #64FFDA;
    --hover-color: #764ba2;
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #000000;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Great Vibes', cursive, 'sans-serif';
}

.nav-logo a:hover{
    opacity: 0.8;
    color: var(--accent-color);
    transition: ease-in-out 0.3s;
}


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

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

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    /* Ensure hamburger is visible and clickable */
    padding: 10px; /* Added padding for easier touch target */
}

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

/* Hero Section */
.hero {
    min-height: 100vh; /* Adjusted for better fit on some screens */
    display: flex;
    align-items: center;
    background-color: #000000;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Space for fixed navbar */
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.highlight {
    background: linear-gradient(to right, #e11d48, #ffffff, rgb(90, 156, 194));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: bold;
    color: var(--secondary-color);
}

.hero-subtitle:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
    text-align: justify;
}

.hero-description:hover {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.btn-primary {
    background: var(--accent-color);
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(13, 186, 192, 0.3);
}

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

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

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    padding-top: 3rem;
    margin-bottom: 1rem;
    color: #e11d48;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #f7f5f5;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background-color: #1b0101;
    padding: 60px 0; /* Add padding for consistency */
}

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

.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ffff;
    background: linear-gradient(to right, #e11d48, #ffffff, rgb(90, 156, 194));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text p {
    margin-bottom: 1rem; /* Corrected to 1rem for better spacing */
    font-size: 1rem;
    text-align: justify;
    color: #ffff;
    line-height: 1.8;
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffff;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Skills Section Styles */
.skills-section {
    padding: 60px 20px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
}

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

/* Duplicated section-title, removed for clean up as it's defined above */
/* .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #e11d48;
} */

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

.skill-card {
    background-color: #000000;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #30363d;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(88, 166, 255, 0.2);
    border-color: #58a6ff;
}

/* Portfolio Section */
.projects-section {
    background-color: #1b0101;
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

/* Duplicated section-title, removed for clean up as it's defined above */
/* .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #e11d48;
} */

.project-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background-color: #010408;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.project-item iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.3rem;
    margin: 10px 0 5px;
}

.project-description {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.view-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e11d48;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-button:hover {
    background-color: #ffff;
    color: #000000;
}


/* Contact Section */

.contact {
    color: #ffffff;
    padding: 60px 20px; /* Added padding for consistency */
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #e11d48, #ffffff, rgb(90, 156, 194));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #cccccc;
    line-height: 1.8;
    text-align: justify;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #e11d48, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #ffff;
}

.email-button {
    display: inline-block;
    background-color: #e11d48;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

button {
    border: none;
    background-color: #1b0101; /* Adjusted to match section background */
}

button:hover, .email-button:hover {
    background-color: #000000; /* Darker on hover */
    border-radius: 10px;
    transition: .3s ease-in-out; /* Smoother transition */
}


.contact-item p {
    color: #ffff;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #000000;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: transparent; 
    color: #000000; 
}

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

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

input::placeholder,
textarea::placeholder {
    color: #e11d48;
}

.btn-submit {
    background: linear-gradient(45deg, #e11d48, #764ba2);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(45deg, #764ba2, #e11d48);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #1b0101;
    color: white;
    padding: 2rem 0;
    text-align: center;
    height: 100%;
}

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

.heart{
    color: #e11d48;
    font-size: 1.2rem;
    margin-left: 5px;
}


/* Responsive Design */
@media (max-width: 992px) { /* Added a breakpoint for larger tablets */
    .nav-menu {
        gap: 1.5rem; /* Slightly reduce menu item gap */
    }

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

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

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

    .profile-img {
        width: 350px;
        height: 350px;
    }

    .about-text h3 {
        font-size: 1.8rem;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        height: calc(100vh - 70px); /* Make menu take full height below navbar */
        overflow-y: auto; /* Allow scrolling if menu content is long */
    }

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

    .nav-item {
        margin: 1rem 0; /* Add vertical spacing for menu items */
    }

    .hero {
        padding-top: 100px; /* Ensure content is below navbar */
        min-height: auto; /* Allow height to adjust based on content */
        padding-bottom: 60px; /* Add some space at the bottom */
    }

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

    .hero-content,
    .hero-image {
        padding: 0 10px; /* Add horizontal padding for content */
    }

    .hero-title {
        font-size: 2.2rem; /* Adjusted for tablet landscape */
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

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

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap; /* Allow stats to wrap if too many */
        gap: 1.5rem; /* Reduced gap */
    }

    .profile-img {
        width: 300px;
        height: 300px;
        margin-top: 2rem; /* Space between content and image */
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .about-img {
        margin: 0 auto; /* Center image */
    }
    .about-text p {
        text-align: left; /* Keep text justified or left-aligned for readability */
        padding: 0 10px;
    }

    .skills-grid,
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min width for tablet */
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) { /* For small Android phones */
   .hero {
       padding-top: 120px; /* Adjust for smaller screens */
   }
    .hero-title {
        font-size: 1.8rem; /* Make title smaller */
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-description {
        font-size: 0.9rem;
    }
    .btn {
        padding: 10px 20px; /* Smaller buttons */
        font-size: 0.9rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
        padding-top: 2rem; /* Reduced padding */
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }

    .skill-card {
        font-size: 1rem;
    }

    .project-item iframe {
        height: 200px; /* Smaller iframe height */
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 0.9rem;
    }
    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .contact-item h4 {
        font-size: 1rem;
    }
    .contact-item p {
        font-size: 0.9rem;
    }
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .about-text p{
        text-align: justify;
    }
}


/* Animations (kept as they are good general effects) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #e11d48, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a5f9a);
}