/* Reset & Base Styles */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070708;
    color: #ffffff;
    overflow-x: hidden;
}

section {
    padding: 100px 8%;
}

section h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
    color: #ffb703; /* Premium Gold Accent */
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #070708;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader h1 {
    font-size: 48px;
    color: #ffb703;
    letter-spacing: 8px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 7, 8, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 183, 3, 0.1);
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffb703;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

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

.menu-btn {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Fixed Social Links (Left Side) */
.fixed-social-links {
    position: fixed;
    left: 30px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.fixed-social-links a {
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.fixed-social-links a:hover {
    color: #ffb703;
    transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    z-index: 999;
}

.whatsapp:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 140px;
    gap: 50px;
}

.heroText {
    flex: 1.2;
}

.heroText span {
    color: #ffb703;
    font-size: 18px;
    font-weight: 500;
}

.heroText h1 {
    font-size: 52px;
    margin: 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

#typing {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.heroText p {
    margin: 20px 0;
    line-height: 1.8;
    color: #a0a0a5;
    font-size: 16px;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn, .btn2 {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
    font-size: 15px;
}

.btn {
    background: #ffb703;
    color: #070708;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(255, 183, 3, 0.4);
    transform: translateY(-3px);
}

.btn2 {
    border: 1px solid #ffb703;
    color: #ffb703;
}

.btn2:hover {
    background: #ffb703;
    color: #070708;
    transform: translateY(-3px);
}

.heroImage {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.heroImage img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffb703;
    box-shadow: 0 0 30px rgba(255, 183, 3, 0.2);
}

/* About Section */
.about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    color: #bcbcbc;
    line-height: 1.9;
    font-size: 18px;
}

/* Services Section */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #ffb703;
    box-shadow: 0 10px 25px rgba(255, 183, 3, 0.1);
}

.card i {
    font-size: 45px;
    color: #ffb703;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: #a0a0a5;
    font-size: 15px;
}

/* Skills Section */
.skill {
    margin: 30px auto;
    max-width: 700px;
}

.skill p {
    margin-bottom: 8px;
    font-weight: 500;
}

.bar {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    background: #ffb703;
    border-radius: 10px;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    background: rgba(255, 183, 3, 0.02);
    border-top: 1px solid rgba(255, 183, 3, 0.05);
    border-bottom: 1px solid rgba(255, 183, 3, 0.05);
}

.stat {
    text-align: center;
    padding: 20px;
}

.stat h2 {
    font-size: 40px;
    color: #ffb703;
    margin-bottom: 5px;
}

.stat p {
    color: #bcbcbc;
    font-size: 15px;
}

/* Portfolio Section */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #121214;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ffb703;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-content p {
    color: #a0a0a5;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-content a {
    text-decoration: none;
    color: #ffb703;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.project-content a:hover {
    border-color: #ffb703;
}

/* Contact Section */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
    margin: auto;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 16px;
    background: #121214;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: #ffb703;
}

#contact-form textarea {
    height: 160px;
    resize: vertical;
}

#contact-form button {
    padding: 16px;
    border: none;
    border-radius: 30px;
    background: #ffb703;
    color: #070708;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

#contact-form button:hover {
    background: #e0a102;
}

/* Footer */
.footer {
    background: #020203;
    text-align: center;
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 183, 3, 0.05);
}

.footer h2 {
    font-size: 30px;
    color: #ffb703;
    margin-bottom: 10px;
}

.footer p {
    color: #8a8a8f;
    font-size: 15px;
}

.footer-social-links {
    margin: 20px 0;
}

.footer-social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-links a:hover {
    background: #ffb703;
    color: #070708;
    border-color: #ffb703;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
}

/* Responsive Media Queries */
@media(max-width: 900px) {
    header { padding: 20px 5%; }
    section { padding: 80px 5%; }
    
    .menu-btn { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #070708;
        padding: 30px;
        border-bottom: 1px solid rgba(255, 183, 3, 0.1);
        gap: 20px;
        text-align: center;
    }
    
    .nav-links.active { display: flex; }
    .fixed-social-links { display: none; }
    
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        gap: 30px;
    }
    
    .heroText h1 { font-size: 38px; }
    .heroImage img { width: 260px; height: 260px; }
    .buttons { justify-content: center; }
}
