/* 
   GK Pharmaceuticals - Main Stylesheet
*/

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

p {
    font-family: var(--font-body);
    color: var(--text-secondary);
}

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

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

/* Page Loader */
#loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-index-loader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(var(--primary-rgb), 0.1);
    border-top: 4px solid var(--primary-hex);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-hex), var(--accent-hex));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Theme Switcher Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: var(--primary-hex);
    color: #FFFFFF;
    border-color: var(--primary-hex);
}

/* Layout Utilities */
.section-padding {
    padding: 100px 0;
}

.container-custom {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary-hex) 0%, var(--secondary-hex) 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-hex) 0%, var(--primary-hex) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--primary-hex) !important;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--primary-hex);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--primary-hex);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.2);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-index-header);
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

header.scrolled .nav-logo img {
    filter: none;
}

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

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

.nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

[data-theme="dark"] .nav-logo img {
    filter: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: #FFFFFF;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

header.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-hex);
    transition: var(--transition-smooth);
}

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

.nav-link:hover, .nav-link.active {
    color: var(--secondary-hex);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: var(--transition-smooth);
}

header.scrolled .hamburger span {
    background-color: var(--text-primary);
}

/* Footer Section */
footer {
    background-color: #050B14;
    color: #94A3B8;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-hex) 0%, var(--secondary-hex) 50%, var(--accent-hex) 100%);
}

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

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #64748B;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--primary-hex);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    border-color: var(--primary-hex);
}

.footer-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-hex);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--secondary-hex);
    padding-left: 5px;
}

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

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
}

.footer-contact-item i {
    color: var(--secondary-hex);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: #FFFFFF;
}

/* Page Headers (Banner layouts) */
.page-header {
    height: 300px;
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.95) 0%, rgba(5, 11, 20, 0.9) 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: var(--header-height);
}

.page-header h1 {
    color: #FFFFFF;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: var(--z-index-base);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    list-style: none;
    font-size: 14px;
    color: #94A3B8;
}

.breadcrumbs a {
    color: #CBD5E1;
}

.breadcrumbs a:hover {
    color: var(--secondary-hex);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #64748B;
}

/* Shared Sections Details */
.section-tag {
    font-family: var(--font-body);
    color: var(--secondary-hex);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary-hex) 0%, var(--secondary-hex) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 40px;
}

.align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll reveal triggers default styling */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade.active {
    opacity: 1;
    transform: translateY(0);
}
