/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --text-color: #e5e7eb;
    --light-text: #9ca3af;
    --background: #0a0f1a;
    --light-bg: #1f2937;
    --card-bg: #1f2937;
    --nav-bg: #1f2937;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.7s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
    outline: none;
}

/* Remove all focus outlines */
.btn:focus,
.btn:focus-visible,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}

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

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

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

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* Navigation */
nav {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo {
    height: 1.8em; /* Slightly larger than text for better visibility */
    width: auto;
    border-radius: 4px;
    vertical-align: middle;
}

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

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    background: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
    text-align: center;
    padding-top: 70px;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.tagline {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* About Section */
.about {
    background-color: var(--background);
    padding-bottom: 0;
    position: relative;
    margin-bottom: 80px; /* Add space below the about section */
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.2s;
}

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills h3 {
    margin: 2rem 0 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    background: #1f2937;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-up {
    transform: translateY(30px);
}

.fade-up.animate {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-left.animate {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(30px);
}

.fade-right.animate {
    transform: translateX(0);
}

/* Projects Section */
.projects {
    background: var(--background);
    padding-bottom: 40px;
    position: relative;
}

/* Divider between projects and contact */
.projects-divider {
    position: relative;
    height: 1px;
    width: 60%;
    margin: 40px auto 80px; /* Increased top and bottom margin */
    overflow: visible;
}

.projects-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--primary-color), 
        transparent);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 2px;
    opacity: 0.5;
    animation: shine 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.project-img {
    height: 200px;
    background: #374151;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: var(--transition);
}

.project-card:hover .project-img {
    opacity: 1;
}

.project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}

.project-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
}

/* Center the View Project button */
.project-btn-container {
    text-align: center;
    padding: 0 1.5rem 1.5rem;
}

.project-btn-container .btn {
    display: inline-block;
    margin: 0 auto;
    padding: 0.6rem 1.4rem;
}

/* Enhanced Section Divider */
.about {
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -40px; /* Position it below the about section */
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 60%;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        var(--primary-color), 
        transparent);
    background-size: 200% 100%;
    background-position: 100% 0;
    border-radius: 2px;
    opacity: 0.5;
    animation: shine 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

@keyframes shine {
    0% {
        background-position: 100% 0;
        opacity: 0.3;
    }
    50% {
        background-position: 0 0;
        opacity: 0.7;
    }
    100% {
        background-position: -100% 0;
        opacity: 0.3;
    }
}

/* Contact Section */
.contact {
    background-color: var(--background);
    position: relative;
    padding-top: 40px; /* Add some space after the divider */
    margin-top: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.instagram-cta {
    background: transparent;
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    border: none;
    box-shadow: none;
}

.instagram-content {
    pointer-events: none; /* Makes content non-interactive */
}

.instagram-btn {
    pointer-events: auto; /* Makes only the button interactive */
    margin-top: 1rem;
}

.instagram-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.instagram-cta p {
    margin-bottom: 1.2rem;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.instagram-cta {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.instagram-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white !important;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none !important;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.instagram-btn:hover,
.instagram-btn:focus {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    outline: none;
}

/* Remove all focus outlines */
.instagram-btn:focus,
.instagram-btn:focus-visible,
.instagram-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.instagram-btn i {
    font-size: 1.2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: var(--primary-color);
}

.contact-info p i {
    width: 24px;
    text-align: center;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 30px;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    padding: 0;
    background: none;
    border: none;
}

.social-icon:hover {
    color: var(--primary-color);
    background: none;
    transform: scale(1.1);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

/* Footer */
footer {
    background: var(--background);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a {
        color: var(--text-color);
        font-size: 1.2rem;
    }
    
    .nav-links a:hover {
        color: var(--primary-color);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
}
