:root {
    --primary: #4dabf7;
    --secondary: #339af0;
    --accent: #74c0fc;
    --bg-dark: #0b0e14;
    --bg-card: rgba(30, 34, 45, 0.7);
    --text: #f8f9fa;
    --light-text: #adb5bd;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --max-width: 1100px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(77, 171, 247, 0.2); }
    50% { box-shadow: 0 0 20px rgba(77, 171, 247, 0.4); }
    100% { box-shadow: 0 0 5px rgba(77, 171, 247, 0.2); }
}

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

a {
    text-decoration: none;
    color: inherit;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(77, 171, 247, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(51, 154, 240, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

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

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--light-text);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

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

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

/* Hero Section */
.hero {
    padding: 140px 0;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 20%, #4dabf7 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: var(--primary);
    color: #0b0e14;
    box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(77, 171, 247, 0.5);
    background: var(--accent);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--white);
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: var(--white);
    color: #0b0e14;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 35px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeIn 1s ease-out;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(77, 171, 247, 0.5);
    background: rgba(30, 34, 45, 0.9);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card i {
    font-size: 3.5rem;
    margin-bottom: 30px;
    display: block;
}

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

/* Grid Layouts */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Footer */
footer {
    background: #05070a;
    padding: 100px 0 50px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 30px;
}

.footer-links h4 {
    margin-bottom: 30px;
    color: var(--white);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    margin-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #444;
}

/* Form Styles */
form {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px !important;
    padding: 40px !important;
}

form input, form textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    color: var(--white) !important;
    transition: all 0.3s ease !important;
}

form input:focus, form textarea:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(77, 171, 247, 0.2) !important;
}

/* Browser Mockup Sleekness */
.portfolio-browser-mockup {
    border: 1px solid var(--border) !important;
    background: #1e222d !important;
}

.browser-header {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Hamburger toggle — hidden on desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 2.8rem; }
    .hero { padding: 100px 0; }
    .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .btn-outline { margin-left: 0; margin-top: 20px; display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 14, 20, 0.98) !important;
        backdrop-filter: blur(20px);
        padding: 30px 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; text-align: center; }
}


