@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0a192f;
    --bg-secondary: rgba(10, 25, 47, 0.85);
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-shadow: rgba(100, 255, 218, 0.1);
    --border-color: rgba(100, 255, 218, 0.1);
    --card-bg: rgba(17, 34, 64, 0.7);
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

[data-theme="light"] {
    --bg-color: #f5f5f5;
    --bg-secondary: rgba(245, 245, 245, 0.85);
    --text-color: #2d3748;
    --text-secondary: #4a5568;
    --accent-color: #0070f3;
    --accent-shadow: rgba(0, 112, 243, 0.1);
    --border-color: rgba(0, 112, 243, 0.1);
    --card-bg: rgba(255, 255, 255, 0.7);
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
}

/* Navigation Styles */
nav {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

/* Update the navigation container layout for mobile */
@media (max-width: 968px) {
    .nav-container {
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding: 0 15px;
        gap: 10px;
    }

    .menu-toggle {
        order: 1;
        justify-self: start;
        margin-right: 10px;
    }

    .logo {
        order: 2;
        text-align: center;
        font-size: 1.4rem; /* Slightly reduce logo size on mobile */
    }

    .theme-toggle {
        order: 3;
    }
}

.logo {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-shadow);
}

.links {
    display: flex;
    gap: 40px;
}

.links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.links a:hover {
    color: var(--accent-color);
}

.links a:hover::after {
    width: 100%;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color);
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.menu-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: 0.3s ease;
}

.menu-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
}

.main-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 20px;
}

.image {
    flex: 1;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    animation: morphShape 8s ease-in-out infinite;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 50px var(--accent-shadow);
    transition: var(--transition);
}

@keyframes morphShape {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image:hover img {
    transform: scale(1.05);
}

.content {
    flex: 1;
    color: var(--text-color);
}

.content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.content h1 span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-shadow);
}

.typewriter {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.typewriter-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-shadow);
    position: relative;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: var(--text-secondary);
    max-width: 600px;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    transform: translateY(0);
}

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

.hire-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hire-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: var(--transition);
    z-index: -1;
}

.hire-btn:hover {
    color: var(--bg-color);
}

.hire-btn:hover::before {
    width: 100%;
}

/* About Section Styles */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.about-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-title span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-shadow);
}

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

.about-text {
    color: var(--text-secondary);
}

.bio-info h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.bio-info h3:first-child {
    margin-top: 0;
}

.bio-info p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-color);
    font-size: 1rem;
}

/* Hobbies Section Styles */
.hobbies-section {
    margin-top: 40px;
}

.hobbies-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.hobby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
    cursor: default;
    backdrop-filter: blur(10px);
}

.hobby-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 20px var(--accent-shadow);
}

.hobby-item i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.hobby-item:hover i {
    transform: scale(1.1);
}

.hobby-item span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.education-timeline {
    color: var(--text-color);
}

.education-timeline h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: calc(100% - 10px);
    width: 2px;
    background: var(--accent-color);
}

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

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid black;
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.5);
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.timeline-content h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.timeline-content .date {
    color: var(--accent-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design for About Section */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .about-section {
        padding: 60px 0;
    }

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

    .bio-info h3 {
        font-size: 1.3rem;
    }

    .timeline-content {
        padding: 15px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.contact-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.contact-card {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-shadow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

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

.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent-color);
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-label {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-left: 5px;
}

.address-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-item {
    margin-bottom: 10px;
}

.address-label {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.address-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.contact-form h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(135, 206, 235, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.send-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.send-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.3);
}

/* Responsive Design for Contact Section */
@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-card.email-card {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-card {
        padding: 20px;
    }

    .email-list a {
        font-size: 0.85rem;
        padding: 12px;
    }

    .email-label {
        font-size: 0.75rem;
    }

    .address-item {
        padding: 8px;
    }

    .address-label {
        font-size: 0.85rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle button:hover {
    transform: rotate(45deg);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

[data-theme="light"] .fa-sun {
    display: none;
}

[data-theme="dark"] .fa-moon {
    display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .image {
        max-width: 400px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

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

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

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .image {
        max-width: 300px;
    }

    .content h1 {
        font-size: 2rem;
    }

    .typewriter {
        font-size: 1.2rem;
    }

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

    .bio-info h3 {
        font-size: 1.3rem;
    }

    .personal-info {
        padding: 15px;
    }

    .hobbies-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .hobby-item {
        padding: 20px 10px;
    }

    .hobby-item i {
        font-size: 1.5rem;
    }

    .hobby-item span {
        font-size: 0.85rem;
    }

    .contact-card {
        padding: 20px;
    }

    .email-list a {
        font-size: 0.9rem;
    }

    .address-item {
        font-size: 0.9rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 80px 20px;
}

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

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.skill-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.skill-item span {
    color: var(--text-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background: var(--bg-color);
}

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

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

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--accent-shadow);
    border-color: var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2rem;
    color: var(--bg-color);
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* Footer Styles */
.site-footer {
    background: var(--card-bg, #222);
    color: #aaa;
    text-align: center;
    padding: 18px 0 12px 0;
    font-size: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Projects Section Styles */
.projects-section {
    padding: 60px 0;
    background: var(--bg-color);
}

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

.projects-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 32px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px var(--accent-shadow);
    border-color: var(--accent-color);
}

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

.project-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    flex: 1;
}

.project-link {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent-color);
    color: var(--bg-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-right: 10px;
    margin-top: 5px;
}

.project-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .projects-section {
        padding: 40px 0;
    }
    .projects-section .section-title {
        font-size: 2rem;
    }
    .project-card {
        padding: 20px 12px 16px 12px;
    }
}
